<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head>



  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <link rel="SHORTCUT ICON" href="http://groups.google.com/groups/img/3/favicon.ico">
  <title>
  using jquery and json on cakephp -
  CakePHP |
  Google Groups
  </title>
  <meta name="save" content="history">
<noscript><style type="text/css"><!--
  .noscripthide { display:none; } .noscriptinline { display:inline; } .noscriptblock { display:block; }
--></style></noscript>
<script language="javascript"><!--
  document.write('<style type="text/css">.scripthide { display: none; } .scriptinline { display: inline; } .scriptblock { display: block; }</style>');
//--></script><style type="text/css">.scripthide { display: none; } .scriptinline { display: inline; } .scriptblock { display: block; }</style>
<script language="javascript1.2"><!--
  if (document.getElementById)
    document.write('<style type="text/css">.script12hide { display: none; } .script12inline { display: inline; } .script12block { display: block; } .lnav { position: absolute; } .lnavch { margin-left:23.0ex;}</style>');
//--></script><style type="text/css">.script12hide { display: none; } .script12inline { display: inline; } .script12block { display: block; } .lnav { position: absolute; } .lnavch { margin-left:23.0ex;}</style>
<script language="javascript1.3"><!--
  if (document.getElementById)
    document.write('<style type="text/css">.script13hide { display: none; } .script13inline { display: inline; } .script13block { display: block; }</style>');
//--></script><style type="text/css">.script13hide { display: none; } .script13inline { display: inline; } .script13block { display: block; }</style>
<style type="text/css"><!--
  
    @import "/groups/style.css?ig=1&stock=5&obg=2v6871077&av=11&v=439";
  
  
--></style>
  <script language="javascript1.3" src="google_groups_files/g2_common-461aab1e795196041dd6f98f0288aee8.js"></script>
<script language="javascript"><!--

// ----------------------------------
// used for dynamic function generation on event handlers

var loaddef = "";
var resizedef = "";

//-----------------------------------
// Browser detection and support

var agt = navigator.userAgent.toLowerCase();
var is_opera = (agt.indexOf("opera") != -1);
var is_ie = (agt.indexOf("msie") != -1) && document.all && !is_opera;
var is_ie5 = (agt.indexOf("msie 5") != -1) && document.all;
window.agt = agt;
window.is_opera = is_opera;
window.is_ie = is_ie;
window.is_ie5 = is_ie5;

// ----------------------------------
// cross-browser functions

var IE_all_cache = new Object();
function IE_getElementById(id) {
  if (IE_all_cache[id] == null) {
    IE_all_cache[id] = document.all[id];
  }
  return IE_all_cache[id];
}

if (document.all) {
  if (!document.getElementById) {
    document.getElementById = IE_getElementById;
  }
}



  //----------------------------------
  // Timezone detection (sets cookie)

  try {
    document.cookie = 'GTZ=' + (new Date()).getTimezoneOffset() + ';path=/;expires=Mon, 01-Jan-2024 00:00:01 GMT';
  } catch(e) {}


// ---------------------------------
// shelled functions for old javascript
function tog() {}

//--></script>
<script language="javascript1.3"><!--

// ----------------------------------
// visibility functions

function tog() {
  // tog: toggle the visibility of html elements (arguments[1..]) from none to
  // arguments[0].  Return what should be returned in a javascript onevent().
  display = arguments[0];
  for( var i=1; i<arguments.length; i++ ) {    
    var x = document.getElementById(arguments[i]);
    if (!x) continue;
    if (x.style.display == "none" || x.style.display == "") {
      x.style.display = display;
    } else {
      x.style.display = "none";
    }
  }

  var e = is_ie ? window.event : this;
  if (e) {
    if (is_ie) {
      e.cancelBubble = true;
      e.returnValue = false;
      return false;
    } else {
      return false;
    }
  }
}



//--></script>
<script language="javascript"><!--
function ad_resize() {}
function if_resize() {}
function fin_resize() {}
function qs() {}
//--></script>
<script language="javascript1.2"><!--
function if_resize(name, w, h) {
  if (document.getElementById && document.getElementById(name)){
    document.getElementById(name).style.height = h + "px";
    document.getElementById(name).style.width = w + "px";
  }
}
function ad_resize(w, h) {
  if_resize("google_ads_frame",w,h);
}
function fin_resize(w, h) {
  if_resize("google_finance_frame",w,h);
}

function qs(el) {
  if (window.RegExp && window.encodeURIComponent) {
    var qe=encodeURIComponent(document.gs.q.value);

    if (qe == '') {
      return 1;
    }

    if (el.href.indexOf("q=")!=-1) {
      el.href=el.href.replace(new RegExp("q=[^&$]*"),"q="+qe);
    } else {
      el.href+="&q="+qe;
    }
  }
  return 1;
}

//--></script>
  <link rel="alternate" type="application/rss+xml" title="RSS" href="http://groups.google.com/group/cake-php/feed/rss_v2_0_msgs.xml">
  <link rel="alternate" type="application/atom+xml" title="Atom" href="http://groups.google.com/group/cake-php/feed/atom_v1_0_msgs.xml">
</head><body onresize="" onload="" topmargin="0" leftmargin="0" bgcolor="white" marginheight="0" marginwidth="0">
  <style type="text/css"><!--
    .mygp1 { padding-bottom: 7px;}
    .mygp2 { padding-bottom: 7px; padding-left: 12px}
  --></style>
  <div class="algnl padall8" id="myg_popup" style="border-style: solid; border-color: rgb(204, 204, 204) rgb(179, 179, 179) rgb(179, 179, 179) rgb(204, 204, 204); border-width: 1px 2px 2px; display: none; position: absolute; background-color: white; z-index: 2;">
  <table border="0" cellpadding="0" cellspacing="0">
  <col style="width: 23ex;">
	 <tbody><tr>
  <td class="mygp1" valign="top">
  CakePHP
  </td>
	 </tr>
  <tr><td class="padb7 padt8" valign="bottom"><b>Recently visited</b>&nbsp;
  <a href="http://groups.google.com/groups/clearrecent?Action.ClearRecent&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3" class="ucl">[clear]</a></td></tr>
	 <tr>
  <td class="mygp1" valign="top">
  <a class="on" href="http://groups.google.com/group/alt.php?lnk=lr">alt.php</a>
  </td>
  </tr>
	 <tr>
  <td class="mygp1" valign="top">
  <a class="on" href="http://groups.google.com/group/comp.lang.php?lnk=lr">comp.lang.php</a>
  </td>
  </tr>
	 <tr>
  <td class="mygp1" valign="top">
  <a class="on" href="http://groups.google.com/group/comp.lang.ruby?lnk=lr">comp.lang.ruby</a>
  </td>
  </tr>
	 <tr>
  <td class="mygp1" valign="top">
  <a class="on" href="http://groups.google.com/group/crosscheck?lnk=lr">crosscheck</a>
  </td>
  </tr>
	 <tr>
  <td class="mygp1" valign="top">
  <a class="on" href="http://groups.google.com/group/feedvalidator-users?lnk=lr">feedvalidator-users</a>
  </td>
  </tr>
	 <tr>
  <td class="mygp1" valign="top">
  <a class="on" href="http://groups.google.com/group/Google-Maps-API?lnk=lr">Google Maps API</a>
  </td>
  </tr>
	 <tr>
  <td class="mygp1" valign="top">
  <a class="on" href="http://groups.google.com/group/peepcode?lnk=lr">PeepCode</a>
  </td>
  </tr>
	 <tr>
  <td class="mygp1" valign="top">
  <a class="on" href="http://groups.google.com/group/php.general?lnk=lr">php.general</a>
  </td>
  </tr>
	 <tr>
  <td class="mygp1" valign="top">
  <a class="on" href="http://groups.google.com/group/pl.comp.lang.php?lnk=lr">pl.comp.lang.php</a>
  </td>
  </tr>
	 <tr>
  <td class="mygp1" valign="top">
  <a class="on" href="http://groups.google.com/group/rubyonrails-talk?lnk=lr">Ruby on Rails: Talk</a>
  </td>
  </tr>
	 <tr>
  <td class="mygp1" valign="top">
  <a class="on" href="http://groups.google.com/group/ruflexjobs?lnk=lr">ruflexjobs</a>
  </td>
  </tr>
	 <tr>
  <td class="mygp1" valign="top">
  <a class="on" href="http://groups.google.com/group/ua-devtalk?lnk=lr">ua-devtalk</a>
  </td>
  </tr>
	 <tr>
  <td class="mygp1" valign="top">
  <a class="on" href="http://groups.google.com/group/Webdesign-outsource?lnk=lr">Web design &amp; programming</a>
  </td>
  </tr>
  </tbody></table>
  <div class="padt8">
  <a href="http://www.google.com/alerts?t=8"><img src="google_groups_files/envelope.gif" alt="Groups Alerts" width="16" border="0" height="15"></a>
  <a href="http://www.google.com/alerts?t=8">Groups Alerts</a>
  </div>
  <div style="padding-top: 15px;">
  <b><a href="http://groups.google.com/groups/create?lnk=l">Create a group...</a></b>
  </div>
  </div>
  <div class="gtopbar">
  <table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tbody><tr valign="middle">
  <td class="maincell" width="132"><a href="http://groups.google.com/"><img src="google_groups_files/groups_bar.gif" alt="Google Groups Home" style="position: relative; top: 1px;" width="132" border="0" height="26"></a></td>
  <td class="maincell" align="right" nowrap="nowrap"><nobr>
  <b>loci.master@gmail.com</b> |
  <a class="on" id="myg_lnk" href="http://groups.google.com/">My Groups</a><img id="myg_img" src="google_groups_files/mygroups_lt.gif" style="position: relative; margin-top: -1px;" class="noscripthide scripthide script12hide script13inline mrgl2" width="14" align="absmiddle" height="14">
  <script language="javascript1.3"><!--
    function MygPopup(el, link_el) {
      this.link_el = link_el;
      this.el = el;
      this.popupOpened = false;
      this.mouseOver = false;
      this.el.onclick = this.onClick.bind(this);
      this.el.onmouseover = this.onMouseOver.bind(this);
      this.el.onmouseout = this.onMouseOut.bind(this);
      window.onresize = this.onResize.bind(this);
      this.ignoreNext = false;
    }
    MygPopup.prototype.onClick = function(e) {
      var e = e || window.event;
      if (IsDescendant(this.el, GetEventTarget(e))
          && this.popupOpened) {
        
	if (this.ignoreNext) {
	  this.ignoreNext = false;
          return;
        }
      }
      if (!IsDescendant(this.getPopup(), GetEventTarget(e))) {
        this.toggle();
      }
    }
    MygPopup.prototype.getPopup = function() {
      if (!this.popup_el) {
        this.popup_el = document.getElementById('myg_popup');
      }
      return this.popup_el;
    }
    MygPopup.prototype.toggle = function() {
      this.popupOpened = !this.popupOpened;
      var popup = this.getPopup();
      if (this.popupOpened) {
        popup.style.visibility = "hidden";
        popup.style.display = "block";
        this.setLeftPos();
        popup.style.top = (GetPageOffsetTop(this.el)
                           + this.el.offsetHeight) + "px";
        this.mouseUpListener = this.onClick.bind(this);
        listen(document, "mousedown", this.mouseUpListener);
	
        popup.style.visibility = "visible";
	this.ignoreNext = true;
      } else {
        unlisten(document, "mousedown", this.mouseUpListener);
        this.mouseUpListener = null;
	
        popup.style.visibility = "hidden";
      }
      this.updateImage();
    }
    MygPopup.prototype.updateImage = function() {
      if (this.popupOpened) {
        this.el.src = "/groups/img/mygroups_down.gif";
      } else if (this.mouseOver) {
        this.el.src = "/groups/img/mygroups_up.gif";
      } else {
        this.el.src = "/groups/img/mygroups_lt.gif";
      }
    }
    MygPopup.prototype.onMouseOver = function() {
      this.mouseOver = true;
      this.updateImage();
    }
    MygPopup.prototype.onMouseOut = function() {
      this.mouseOver = false;
      this.updateImage();
    }

    

    MygPopup.prototype.setLeftPos = function() {
      var popup = this.getPopup();
      
        var setLeft = GetWindowWidth(window) - popup.offsetWidth - 5;
        popup.style.left = Math.min(setLeft,
	                   	    GetPageOffsetLeft(this.link_el)) + "px";
      
    }
    MygPopup.prototype.onResize = function() {
      if (this.popupOpened) {
        this.setLeftPos();
      }
    }

    var mygPopup = new MygPopup(document.getElementById('myg_img'),
				document.getElementById('myg_lnk'));
  //--></script>
 |
  <a class="on" href="http://groups.google.com/groups/favorites">Favorites</a> |
  <a class="on" href="http://groups.google.com/groups/profile?myprofile">Profile</a> |
  <a target="_blank" href="http://groups.google.com/support?hl=en">Help</a> |
  <a href="https://www.google.com/accounts/ManageAccount?hl=en">My Account</a> |
  <a target="_top" href="http://groups.google.com/groups/signout?q=1&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3">Sign out</a>
  </nobr></td>
  </tr>
  </tbody></table></div>
<script language="javascript"><!--
// Make functions exist for older browsers
function toggle_watch() {}
function toggleStar() {}
//--></script>
  <script language="javascript1.3" src="google_groups_files/g2_message_elements-e00b0afe8fc672f9dc1f322f0bad19c3.js"></script>
<script language="javascript"><!--
// Shelled functions for javascript compatibility
function c() {}
function op() {}
function rl() {}
function tog_quote() {}
//--></script>
<script language="javascript1.2"><!--

function c( idnum ) {	//cancel a message -- clear text and toggle the reply box. slight delay gives user time to perceive that text is being cleared.
  document.getElementById( 't'+idnum ).value="";
  func = "rl( '" + idnum + "' )";
  window.setTimeout( func, 300 );
}

function op( idnum )  // hide/show headers
{
  optionLink = document.getElementById( 'o'+idnum );
  x = tog('block', 'h'+idnum );
  for (var i = 1; i < 4; i++) {
    tog(is_ie ? 'block' : 'table-row', 'htr' + i + '_' + idnum );
  }
  if( optionLink.innerHTML == "show options" ) 
  {
    optionLink.innerHTML = "hide options";
  } else {
    optionLink.innerHTML = "show options";
  }
  optionLink.blur();
  return x;
}

function rl( idnum ) {  //function to toggle "reply" link; gets rid of annoying linkfocus & toggles ticks
  replyblockid = 'r' + idnum;
  textareaObj = document.getElementById( 't'+idnum );
  linkobj = document.getElementById( 'lo'+idnum );
  x = tog('block', replyblockid);
  visible = document.getElementById( replyblockid ).style.display;
  tick = document.getElementById( 'ti'+idnum );
  if( visible == "none" ) {
    linkobj.blur();
    tick.src = "/groups/img/r.gif";
  } else {
    textareaObj.focus();
    tick.src = "/groups/img/d.gif";
  }
  return x;
}

function tog_quote( idnum ) {
  return tog( 'block', 'qheader_shown_' + idnum, 'qheader_hidden_' + idnum,
	   'qhide_' + idnum );
}

//--></script>
  <div style="border-top: 1px solid rgb(0, 61, 76);"></div>
  <div style="padding: 4px 10px; background-color: rgb(0, 61, 76);">
  <table class="grhdr" width="100%" cellpadding="0" cellspacing="0"><tbody>
  <tr valign="middle">
	 <td class="padr10" width="42" height="42">
  <div style="overflow: hidden; width: 42px; height: 42px;">
  <img src="google_groups_files/icon.png" alt="" class="" style="" width="42" height="42">
  </div>
  </td><td>
  <div class="ghgrn">
  <a class="ln" href="http://groups.google.com/group/cake-php">CakePHP</a>
  </div>
  </td><td style="padding-left: 35px;" align="right">
  <script><!--
                function sg() {
                  document.gs3.q.value = document.gs2.q.value;
                  document.gs3.submit();
                }
              //--></script>
  <form name="gs2" method="get" action="/group/cake-php/search">
  <table cellpadding="0" cellspacing="0"><tbody><tr><td>
  <input name="group" value="cake-php" type="hidden"><input name="q" size="20" maxlength="2048" value="" style="width: 25ex;" type="text">
  </td>
  <td class="padl5">
  <input class="bt" style="width: 100%;" name="qt_g" value="Search this group" type="submit">
  </td>
  <td class="padl5">
  <input class="bt" style="width: 100%;" name="qt_s" onclick="sg();" value="Search Groups" type="button">
	 </td>
  </tr></tbody></table>
  </form>
  <form class="hide" name="gs3" method="get" action="/groups/search">
  <input name="qt_s" value="1" type="hidden">
  <input name="q" size="20" maxlength="2048" value="" type="hidden">
  </form>
  </td>
  </tr>
  </tbody></table>
  </div>
  <div style="border-top: 1px solid rgb(0, 61, 76);"></div>
  <div class="rf" style="width: 32ex;">
  <div class="overflow-hide" style="position: absolute; margin-top: -1px; margin-left: -1px; z-index: 1;">
  <div class="mrgl1" style="width: 32ex; background-color: rgb(0, 61, 76);">
  <div class="padb10 padr10">
  <div class="rnsecs">
  <table></table>
  <div class="sec">
  <a class="secln" href="http://groups.google.com/group/cake-php">Home</a>
  </div>
  <table></table>
  <div class="selsec">
  <div style="">
  <a class="seclnact" href="http://groups.google.com/group/cake-php/topics?start=">Discussions</a>
  </div>
  <div class="actlns">
  <a class="on" href="http://groups.google.com/group/cake-php/post">+ new post</a>
  </div>
  </div>
  <table></table>
  <div class="sec">
  <a class="seclnact" href="http://groups.google.com/group/cake-php/web">Pages</a>
  </div>
  <table></table>
  <div class="sec">
  <a class="secln" href="http://groups.google.com/group/cake-php/files">Files</a>
  </div>
  <table></table>
  <table></table>
  <div class="mrgt5 mrgl10" style="border-bottom: 1px solid rgb(0, 61, 76);"></div>
  <div class="padt10"></div>
  <div class="sec">
  <a class="seclnlt" href="http://groups.google.com/group/cake-php/about">About this group</a>
  </div>
  <div class="sec">
  <a class="seclnlt" href="http://groups.google.com/group/cake-php/subscribe">Edit my membership</a>
  </div>
  <div class="sec">
  <a class="seclnlt" href="http://groups.google.com/group/cake-php/members_invite">Invite members</a>
  </div>
  </div>
<div class="padt5"></div>
  <div>
  <iframe class="wdth100" name="google_ads_frame" id="google_ads_frame" src="google_groups_files/adfetch.htm" style="height: 237px; width: 214px;" allowtransparency="true" scrolling="no" frameborder="0"></iframe>
  </div>
  </div>
</div>
</div>
</div>
  <table class="wdth100 overflow-hide" style="table-layout: fixed;" cellpadding="0" cellspacing="0">
  <col height="100%" width="*"><col style="width: 32ex;"><tbody><tr valign="top"><td class="overflow-hide" style="border-right: 1px solid rgb(0, 61, 76); border-bottom: 1px solid rgb(0, 61, 76);">
<div class="maincontheaderbox">
  <div class="secttlbarwrap">
  <div><table width="100%" cellpadding="0" cellspacing="0"><tbody><tr><td><div style="background: transparent url(/groups/roundedcorners?c=ffffff&amp;bc=white&amp;w=4&amp;h=4&amp;a=af) repeat scroll 0px 0px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 4px; height: 4px;"></div></td><td width="100%" bgcolor="#ffffff" height="4"><img alt="" width="1" height="1"></td><td><div style="background: transparent url(/groups/roundedcorners?c=ffffff&amp;bc=white&amp;w=4&amp;h=4&amp;a=af) repeat scroll -4px 0px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 4px; height: 4px;"></div></td></tr></tbody></table></div>
  <div class="secttlbar">
  <div class="lf secttl">
  <span id="thread_subject_site">
  using jquery and json on cakephp
  </span>
  </div>
  <div class="rf secmsg frtxt padt2">
  <a class="uitl" id="showoptions_lnk2" href="#" onclick="TH_ToggleOptionsPane(); return false;">Options</a>
  </div>
  <div class="hght0 clear" style="font-size: 0pt;"></div>
  </div>
  <div class="secttlbaroptpane hide" id="TH_optionsPane_optpane">
  <script language="javascript1.2"><!--
    window.TH_optionsPane = {
      expanded: false,
      toggle: function() {
        var botcorner_el = document.getElementById('TH_optionsPane_botcorner');
        var optpane_el = document.getElementById('TH_optionsPane_optpane');
        this.expanded = !this.expanded;
        botcorner_el.style.display = (this.expanded ? "none" : "block");
        optpane_el.style.display = (this.expanded ? "block" : "none");
      }
    };
  //--></script>
  <div>
  <form name="f" action="/group/cake-php/manage_thread" method="post">
  <input name="_done" value="/group/cake-php/browse_thread/thread/a7480daeb8922d0d/2f6ff50ac0d367d3" type="hidden">
  <input name="tid" value="a7480daeb8922d0d" type="hidden">
  <table width="100%" cellpadding="0" cellspacing="0">
  <tbody><tr>
  <td colspan="2">
  <div class="hide" id="err_too_many_sticky">
  <font color="#cc0000">There
are currently too many topics in this group that display first. To make
this topic appear first, remove this option from another topic.</font>
  </div>
  </td></tr>
  <tr>
  <td colspan="2">
  <div class="hide" id="err_general">
  <font color="#cc0000">There was an error processing your request. Please try again.</font>
  </div>
  </td></tr>
  <tr valign="top">
  <td class="padb4" width="70%">
  <div>
  <div class="fontsize2 padb4">
  <b>Standard view</b> &nbsp;
  <a class="on" href="http://groups.google.com/group/cake-php/browse_frm/thread/a7480daeb8922d0d?tvc=1">View as tree</a>
  </div>
  <div class="padb4">
  <a class="fontsize2"><b>Proportional text</b></a> &nbsp; <a class="on fixed_width" href="http://groups.google.com/group/cake-php/browse_thread/thread/a7480daeb8922d0d/2f6ff50ac0d367d3?fwc=1">Fixed text</a>
  </div>
  <div>
  <span class="fontsize2"><div id="thread_threadsub_site"><table cellpadding="0" cellspacing="0"><tbody><tr><td style="" width="18"><a id="threadsubcake-php@a7480daeb8922d0d" name="threadsubcake-php@a7480daeb8922d0d" value="0" target="_parent" href="http://groups.google.com/group/cake-php/watch_topic?WebToken=009b082ac8954f2d1e4929c204d7d2b9&amp;tid=a7480daeb8922d0d&amp;oldstate=0" onclick="return toggleStar('009b082ac8954f2d1e4929c204d7d2b9', 'cake-php', 'a7480daeb8922d0d', 2);"><img class="stimg" title="Click the envelope to receive email updates" id="threadsubcake-php@a7480daeb8922d0d_img" name="threadsubcake-php@a7480daeb8922d0d_img" src="google_groups_files/threadsub_n.gif" width="14" align="absmiddle" border="0" height="11"></a></td><td><a id="threadsubcake-php@a7480daeb8922d0d" name="threadsubcake-php@a7480daeb8922d0d" value="0" target="_parent" href="http://groups.google.com/group/cake-php/watch_topic?WebToken=009b082ac8954f2d1e4929c204d7d2b9&amp;tid=a7480daeb8922d0d&amp;oldstate=0&amp;email=1" onclick="return toggleStar('009b082ac8954f2d1e4929c204d7d2b9', 'cake-php', 'a7480daeb8922d0d', 2);"><span id="threadsubcake-php@a7480daeb8922d0d_lnk2" name="threadsubcake-php@a7480daeb8922d0d_lnk2">Email updates to me</span><span id="threadsubcake-php@a7480daeb8922d0d_lnk0" name="threadsubcake-php@a7480daeb8922d0d_lnk0" style="display: none;">Cancel my email updates</span></a></td></tr></tbody></table></div></span>
  </div>
  </div>
  </td>
  <td nowrap="nowrap">
  <div id="thread_manage_options_site">
  <div>
  </div>
  <div>
  </div>
  <div>
  </div>
  </div>
  </td>
  </tr>
  </tbody></table>
  </form>
  </div>
  </div>
  <div class="" id="TH_optionsPane_botcorner">
  <div><table width="100%" cellpadding="0" cellspacing="0"><tbody><tr><td><div style="background: transparent url(/groups/roundedcorners?c=ffffff&amp;bc=white&amp;w=4&amp;h=4&amp;a=af) repeat scroll 0px 4px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 4px; height: 4px;"></div></td><td width="100%" bgcolor="#ffffff" height="4"><img alt="" width="1" height="1"></td><td><div style="background: transparent url(/groups/roundedcorners?c=ffffff&amp;bc=white&amp;w=4&amp;h=4&amp;a=af) repeat scroll -4px 4px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 4px; height: 4px;"></div></td></tr></tbody></table></div>
  </div>
  </div>
</div>
<div class="maincontbox">
  <table border="0" cellpadding="0" cellspacing="0">
  <tbody><tr>
  <td class="thread_star" id="thread_watch_site" width="17"><a class="st" id="watchcake-php@a7480daeb8922d0d" name="watchcake-php@a7480daeb8922d0d" value="0" target="_parent" href="http://groups.google.com/group/cake-php/watch_topic?WebToken=009b082ac8954f2d1e4929c204d7d2b9&amp;tid=a7480daeb8922d0d&amp;oldstate=0" onclick="return toggleStar('009b082ac8954f2d1e4929c204d7d2b9', 'cake-php', 'a7480daeb8922d0d', 1);"><img class="stimg" title="Click the star to watch this topic" id="watchcake-php@a7480daeb8922d0d_img" name="watchcake-php@a7480daeb8922d0d_img" src="google_groups_files/watched_n.gif" width="15" align="absmiddle" border="0" height="15"></a></td>
  <td><div class="fontsize2" id="thread_threadsub_site2"><div class="padl4 hide" id="ts_navinfo"><a id="threadsubcake-php@a7480daeb8922d0d" name="threadsubcake-php@a7480daeb8922d0d" value="0" target="_parent" href="http://groups.google.com/group/cake-php/watch_topic?WebToken=009b082ac8954f2d1e4929c204d7d2b9&amp;tid=a7480daeb8922d0d&amp;oldstate=0" onclick="return toggleStar('009b082ac8954f2d1e4929c204d7d2b9', 'cake-php', 'a7480daeb8922d0d', 2);"><img class="stimg" title="Click the envelope to receive email updates" id="threadsubcake-php@a7480daeb8922d0d_img" name="threadsubcake-php@a7480daeb8922d0d_img" src="google_groups_files/threadsub_n.gif" width="14" align="absmiddle" border="0" height="11"></a></div></div></td>
  <td><div class="fontsize2" id="sticky_icon_site"><div class="padl4 hide" id="sticky_icon"><img src="google_groups_files/pushpin.gif" alt="flag" width="13" height="12"></div></div></td>
  <td width="5">&nbsp;</td>
  <td width="100%" align="left">
  <span id="thread_page_msg_site" class="uit">7 messages<span class="noscripthide">&nbsp;-&nbsp;<a name="expand_all_msgs_link" id="expand_all_msgs_link" href="#" class="grltl">Expand all</a></span>
  </span>
  </td>
  <td align="right"><nobr id="thread_page_links_site">
  </nobr></td>
  </tr>
  </tbody></table>
  <script language="javascript1.2"><!--
    function TH_ToggleOptionsPane() {
      TH_optionsPane.toggle();
      var showoptions_lnk2_el = document.getElementById('showoptions_lnk2');
      showoptions_lnk2_el.innerHTML = (TH_optionsPane.expanded ? "Hide options" : "Options");

      
      if (!TH_optionsPane.expanded) {
        TH_ToggleThreadSubNavAndInfo();
      }
    }

    function TH_ToggleThreadSubNavAndInfo() {
      
      var display = TS_isThreadSubbed('cake-php', 'a7480daeb8922d0d');
      var ts_span_el = document.getElementById('ts_navinfo');

      if (display) {
        ts_span_el.style.display = 'block';
      } else {
        
      }
    }
  //--></script>
<div id="msgs">
  <div style="margin-left: -3px; margin-right: -1px;">
  <input name="persist_msg_render" id="persist_msg_render" style="" type="hidden">
  <iframe name="post_res" id="post_res" style="position: absolute; visibility: hidden; width: 1px; height: 1px;"></iframe>
  <img class="hide" id="chrn" style="position: absolute; z-index: 2; left: 11px; top: 1282px; display: block;" src="google_groups_files/chevron_left_grey.gif" width="9" height="11">
  <script language="javascript1.3" src="google_groups_files/g2_messages-cda70bb9f87230c57f95a542070cfb0e.js"></script>
  <script><!--
      var G2_cardManager = {
        _getMessage:function(){return {_load:function(){}};},
        _getCard:function(){return {_load:function(){}};}
      };
    //--></script>
  <div class="hide" id="upw">The group you are posting to is a <a href="http://www.google.com/googlegroups/about.html#usenet" target="_top">Usenet group</a>. Messages posted to this group will make your email address visible to anyone on the Internet.</div>
  <div class="hide" id="arw">Your reply message has not been sent.</div>
  <div class="hide" id="psw">Your post was successful</div>
  <script language="javascript1.3"><!--
      if (_G2_CardManager) {
        var G2_cardManager = new _G2_CardManager(window, "cake-php");

        G2_cardManager._setComposerTemplateGenerator(function() {
          return (window.SM_msg_cb2_value ? window.SM_msg_cb2_value : window.SM_msg_cb2_value = document.getElementById('SM_msg_cb2').innerHTML.replace(/(^.*<!--SSM|ESM-->.*$)/g, ""))
  });
  G2_cardManager._setDoneUrl("/group/cake-php/topics");
  G2_cardManager._setAcUrl("/groups/profile/contacts?out=js&max=500&jsx=true");
  _MR_Message._COMPOSING_TITLE_COLOR = "#c3d9ff";
  var MSG_USENET_POSTING_WARNING = document.getElementById("upw").innerHTML;
  var MSG_ACTIVE_REPLY_WARNING = document.getElementById("arw").innerHTML;
  var MSG_POST_SUCCESSFUL = document.getElementById("psw").innerHTML;
  window.onbeforeunload = G2_cardManager._anyCardsComposing.bind(G2_cardManager);
  }
  //--></script>
  <span class="hide" id="SM_msg_cb2"><!--SSM
      
  <div id="cb2_cwrn" class="cpb2 hide">
  <table class="ctb" cellpadding="0" cellspacing="0" width="100%"><tbody>
  <tr class="cf cb2">
  <td colspan="2">
  <div class="cd">
  <button type="button" tabindex="1" style="padding: 0 1em;" id="dc">Cancel</button>
  </div>
  </td>
  </tr>
  <tr>
  <td colspan="2">
  <div class="ci cb2 cd">
  <div class="phd">
  <div><table cellpadding=0 cellspacing=0 width="100%"><tr><td><div style="background: url(/groups/roundedcorners?c=ffd4a2&bc&w=6&h=6&a=af) 0px 0px; width: 6px; height: 6px"></div><td bgcolor="#ffd4a2" width="100%" height="6"><img alt="" width=1 height=1><td><div style="background: url(/groups/roundedcorners?c=ffd4a2&bc&w=6&h=6&a=af) -6px 0px; width: 6px; height: 6px"></div></table></div>
  <div class="ph" style="position:relative; margin:-2px 0px; background-color: #ffd4a2;">
  <div id="wrn_cnt"></div>
  </div>
  <div><table cellpadding=0 cellspacing=0 width="100%"><tr><td><div style="background: url(/groups/roundedcorners?c=ffd4a2&bc&w=6&h=6&a=af) 0px 6px; width: 6px; height: 6px"></div><td bgcolor="#ffd4a2" width="100%" height="6"><img alt="" width=1 height=1><td><div style="background: url(/groups/roundedcorners?c=ffd4a2&bc&w=6&h=6&a=af) -6px 6px; width: 6px; height: 6px"></div></table></div>
  </div>
  </div>
  </td>
  </tr>
  <tr class="cf cb2"><td colspan="2" height="5"></td></tr>
  </tbody></table>
  </div>
  <div id="cb2" class="cpb2 hide;">
  <form action="/group/cake-php/post?Action.BackgroundPost=1" class="cf cb2" accept-charset="utf-8" target="post_res" method="post"  onsubmit="return false" id="form">
  <input name="WebToken" id="wtok" type=hidden value="009b082ac8954f2d1e4929c204d7d2b9">
  <input type=hidden name=orig_charset value="ISO-8859-1">
  <input name="no_subj_override" id="no_subj_or" type="hidden" value="0">
  <input name="no_body_override" id="no_body_or" type="hidden" value="0">
  <input name="quickreply" type="hidden" value="1">
  <div class="wdth100">
  <table class="ctb wdth100" cellpadding="0" cellspacing="0"><tbody>
  <tr>
  <td colspan="2">
  <div class="cd" id="cbar">
  <button type="button" tabindex="1" style="padding: 0 2em;" id="send"><b>Send</b></button> &nbsp;<button type="button" tabindex="1" style="padding: 0 1em;" id="dc">Discard</button>
  </div>
  </td>
  </tr>
  <tr class="padt5">
  <td colspan="2">
  <div class="ci cb2">
  <div class="cd">
  <div class="phd hide" id="wrn">
  <div><table cellpadding=0 cellspacing=0 width="100%"><tr><td><div style="background: url(/groups/roundedcorners?c=ffd4a2&bc&w=6&h=6&a=af) 0px 0px; width: 6px; height: 6px"></div><td bgcolor="#ffd4a2" width="100%" height="6"><img alt="" width=1 height=1><td><div style="background: url(/groups/roundedcorners?c=ffd4a2&bc&w=6&h=6&a=af) -6px 0px; width: 6px; height: 6px"></div></table></div>
  <div class="ph" style="position:relative; margin:-2px 0px; background-color: #ffd4a2;">
  <div id="wrn_cnt"></div>
  </div>
  <div><table cellpadding=0 cellspacing=0 width="100%"><tr><td><div style="background: url(/groups/roundedcorners?c=ffd4a2&bc&w=6&h=6&a=af) 0px 6px; width: 6px; height: 6px"></div><td bgcolor="#ffd4a2" width="100%" height="6"><img alt="" width=1 height=1><td><div style="background: url(/groups/roundedcorners?c=ffd4a2&bc&w=6&h=6&a=af) -6px 6px; width: 6px; height: 6px"></div></table></div>
  </div>
  <table cellpadding="0" cellspacing="2"><tbody>
  <tr id="from" align="right" valign="top">
  <td class="mchc" nowrap><b>From:</b></td>
  <td class="mchc" colspan="2" width="100%">
  <div class="mrgl2 algnl wdth100" id="ro"></div>
  </td>
  </tr>
  <tr id="to" align="right" valign="top">
  <td class="mchc" nowrap><b><span id="name">To</span>:</b></td>
  <td class="mchc" colspan="2" width="100%">
  <div class="mrgl2 algnl wdth100" id="ro"></div>
  <textarea class="wdth100" spellcheck="false" tabindex="1" rows="2" wrap="soft" name="to" id="rw"></textarea>
  </td>
  </tr>
  <tr class="hide" id="cc" align="right" valign="top">
  <td class="mchc" nowrap><b>Cc:</b></td>
  <td class="mchc" colspan="2" width="100%">
  <textarea class="wdth100" spellcheck="false" tabindex="1" rows="2" wrap="soft" name="cc" id="rw"></textarea>
  </td>
  </tr>
  <tr class="hide" id="flw_to" align="right" valign="top">
  <td class="mchc" nowrap><nobr><b>Followup To:</b></nobr></td>
  <td class="mchc" colspan="2" width="100%">
  <textarea class="wdth100" spellcheck="false" tabindex="1" rows="2" wrap="soft" name="followup_to" id="rw"></textarea>
  </td>
  </tr>
  <tr>
  <td></td>
  <td id="row_mod" width="100%">
  <table cellpadding="0" cellspacing="0" width="100%"><tbody>
  <tr>
  <td class="mchc">
  <span class="lk" id="mod_cc">Add Cc</span><span id="mod_sep_cc_flw"> | </span><span class="lk" id="mod_flw_to">Add Followup-to</span><span id="mod_sep_flw_subj"> | </span><span class="lk" id="mod_subj">Edit Subject</span></td>
  <td align="right"></td>
  </tr>
  </tbody></table>
  </td>
  </tr>
  <tr class="hide" id="subj" align="right" valign="top">
  <td class="mchc" nowrap><b>Subject:</b></td>
  <td class="mchc" colspan="2" width="100%">
  <input class="wdth100" spellcheck="true" tabindex="1" name="subject" size="60" id="rw" value="">
  </td>
  </tr>
  </tbody></table>
  </div>
  </div>
  </td>
  </tr>
  <tr>
  <td class="ci cb2" colspan="2">
  <div class="sm"></div>
  <table class="wdth100">
  <tr><td width="3px"><img alt="" width="3" height="1"><td>
  <textarea style="width: 100%; padding: 5px; position: relative;" tabindex="1" id="cmp_body" rows="15" name="body" wrap="soft" ></textarea>
  </td><td width="10px"><img alt="" width="10" height="1"></td></tr>
  </table>
  </td>
  </tr>
  <tr id="cap_bx" class="padt5 hide">
  <td colspan="2">
  <div class="ci cb2">
  <div class="cd">
  <input id="ct" name="ctoken" type="hidden" value="">
  <table cellpadding="0" cellspacing="2"><tbody>
  <tr align="left" valign="top">
  <td class="mchc" nowrap><b>Validation:</b></td>
  <td class="mchc" colspan="2" width="100%">
  <div class="mrgl5"></div>
  For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon.
  <img class="ciq" id="iq" src="/groups/img/dot_clear.gif" width=200 height=70>
  <input type=text tabindex="1" title="Type the characters you see or numbers you hear" size=30 name="answer" id="ans" value="">
  <img id="aq" src="/groups/img/accessibility.gif" border="0" alt="Listen and type the numbers you hear">
  </td>
  </tr>
  </table>
  </div>
  </div>
  <tr id="cmp_rsz" style="cursor:move;">
  <td colspan="2">
  <div class="cd padb0">
  <button type="button" tabindex="1" style="padding: 0 2em;" id="send2"><b>Send</b></button> &nbsp;<button type="button" tabindex="1" style="padding: 0 1em;" id="dc2">Discard</button>
  </div>
  </td>
  </tr>
  <tr height="2">
  <td class="bl"></td>
  <td class="br"></td>
  </tr>
  </tbody></table></div></form>
  </div>
  ESM--></span>
  <table border="0" cellpadding="0" cellspacing="0"><tbody><tr>
  <td><img src="google_groups_files/dot_clear.gif" width="1" height="1"></td>
  <td width="100%">
  <div class="msg wdth100" id="msg_4b4714b491b26192" onmouseover="if (G2_cardManager) {G2_cardManager._getMessage('4b4714b491b26192')._load();}" style="margin: 0pt -1px;">
  <input id="hdn_reply_to_subj" value="using jquery and json on cakephp" type="hidden">
  <input id="hdn_from" value="Loci-master &lt;loci.master@gmail.com&gt;" type="hidden">
  <input id="hdn_date" value="Feb 17, 3:53&nbsp;am" type="hidden">
  <input id="hdn_author" value="mike &lt;mikezmontesi...@gmail.com&gt;" type="hidden">
  <input id="hdn_group_name" value="CakePHP" type="hidden">
  <div id="hdr">
  <table id="top" class="h msg_meta" cellpadding="0" cellspacing="0"><tbody>
  <tr id="sep">
  <td rowspan="2" id="l" class="ctl"></td>
  <td colspan="4" id="m" class="ctop" height="4"></td>
  <td rowspan="2" id="r" class="ctr"></td>
  </tr>
  <tr>
  <td><span class="fontsize2 author">
  <span style="color: rgb(0, 104, 28);">mike</span>
  &nbsp;
  </span></td>
  <td width="100%">
  <table class="rc" cellpadding="0" cellspacing="0"><tbody>
  <tr><td><span class="fontsize0" id="prof"><a target="_top" href="http://groups.google.com/groups/profile?enc_user=LaZK3xkAAABy3Xm7OwyhM-sRwVR9Y8DbFEmssiLmwyaEWxy9LPEfEQ">View profile</a></span><div id="body_sum" style="color: rgb(102, 102, 102);" class="fontsize2 hide"></div></td></tr>
  </tbody></table>
  </td>
  <td align="right" nowrap="nowrap">
  <span style="background-color: white;">
  <span class="fontsize0">&nbsp;<span class="noscripthide scripthide script12inline lk" id="oh_l">More options</span></span>
  <span class="fontsize2">
  Feb 17, 3:53&nbsp;am
  </span>
  </span>
  </td>
  </tr>
  </tbody></table>
  <div class="scripthide cb" id="oh">
  <div class="exh">
  <div class="fontsize2">
  <div style="padding-left: 20px; text-indent: -16px;">From: <b>mike &lt;mikezmontesi<a target="_parent" href="http://groups.google.com/groups/unlock?msg=4b4714b491b26192&amp;_done=/group/cake-php/browse_thread/thread/a7480daeb8922d0d/2f6ff50ac0d367d3">...</a>@gmail.com&gt;</b></div>
  <div style="padding-left: 20px; text-indent: -16px;">Date: <b>Sat, 16 Feb 2008 12:53:28 -0800 (PST)</b></div>
  <div style="padding-left: 20px; text-indent: -16px;">Local: <b>Sun, Feb 17 2008 3:53&nbsp;am
</b></div>
  <div style="padding-left: 20px; text-indent: -16px;">Subject: <b>using jquery and json on cakephp</b></div>
  </div>
  <div class="fontsize1 padall4">
  <a target="_top" id="ra" class="l" href="http://groups.google.com/group/cake-php/post?inreplyto=4b4714b491b26192&amp;reply_to=author&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">Reply to author</a>
  |
  <a target="_top" id="f" class="l" href="http://groups.google.com/group/cake-php/post?inreplyto=4b4714b491b26192&amp;forward=1&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">Forward</a>
  | <a target="_blank" class="l" href="http://groups.google.com/group/cake-php/msg/4b4714b491b26192?dmode=print">Print</a>
  | <a target="_top" class="l" href="http://groups.google.com/group/cake-php/msg/4b4714b491b26192">Individual message</a>
  | <a target="_blank" class="l" href="http://groups.google.com/group/cake-php/msg/4b4714b491b26192?dmode=source">Show original</a>
  | <a target="_blank" class="l" href="http://groups.google.com/groups/abuse?group=cake-php&amp;type=message&amp;url=http%3A%2F%2Fgroups.google.com%2Fgroup%2Fcake-php%2Fmsg%2F4b4714b491b26192&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">Report this message</a>
  | <a target="_top" href="http://groups.google.com/groups/search?enc_author=LaZK3xkAAABy3Xm7OwyhM-sRwVR9Y8DbFEmssiLmwyaEWxy9LPEfEQ&amp;scoring=d">Find messages by this author</a>
  </div>
  </div>
  </div>
  </div>
  <div id="body" class="mb cb fontsize2">
  <div id="inbdy">
  <a name="msg_4b4714b491b26192"></a>How do I send and process ajax request using jquery's .getJson() on
<br> cakephp. I need to setup dynamic dropdown box? Thanks
<br>
  </div>
  <br style="font-size: 8px;" clear="all">
  </div>
  <div id="cb" class="">
  <div class="cg cb2">
  <div class="cg cb2">
  <div class="cg cb2"><span class="fontsize1">&nbsp;
  <span class="lc" id="ra">&nbsp;&nbsp;<a target="_top" href="http://groups.google.com/group/cake-php/post?inreplyto=4b4714b491b26192&amp;reply_to=author&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">Reply to author</a>&nbsp;&nbsp;</span><span class="lc" id="f">&nbsp;&nbsp;<a target="_top" href="http://groups.google.com/group/cake-php/post?inreplyto=4b4714b491b26192&amp;forward=1&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">Forward</a>&nbsp;&nbsp;</span></span>
  <span class="fontsize1">&nbsp;&nbsp;&nbsp;&nbsp;Rate this post:</span>
  <script language="javascript1.2"><!--
        var rh_4b4714b491b26192 = new RAT_RatingHolder('4b4714b491b26192', '0', '');
      //--></script>
  <nobr>
  <a class="s1" id="s1_4b4714b491b26192" name="s1_4b4714b491b26192" href="javascript:void(0)" onmousemove="RAT_mouseMove(event);" onmousedown="RAT_startTrackingStars('4b4714b491b26192', '1', rh_4b4714b491b26192);return false;" onmouseover="RAT_hesitateStars('4b4714b491b26192', '1', rh_4b4714b491b26192);return false;" onmouseup="RAT_mouseUpInStar('cake-php','4b4714b491b26192','1', rh_4b4714b491b26192, '009b082ac8954f2d1e4929c204d7d2b9');return false;" ;="" onmouseout="RAT_unhesStars('4b4714b491b26192', '1', rh_4b4714b491b26192);return false;"><img name="s1_4b4714b491b26192_img" id="s1_4b4714b491b26192_img" src="google_groups_files/clear_star_blue_outline.gif" width="14" align="absmiddle" height="13"></a><a class="s2" id="s2_4b4714b491b26192" name="s2_4b4714b491b26192" href="javascript:void(0)" onmousemove="RAT_mouseMove(event);" onmousedown="RAT_startTrackingStars('4b4714b491b26192', '2', rh_4b4714b491b26192);return false;" onmouseover="RAT_hesitateStars('4b4714b491b26192', '2', rh_4b4714b491b26192);return false;" onmouseup="RAT_mouseUpInStar('cake-php','4b4714b491b26192','2', rh_4b4714b491b26192, '009b082ac8954f2d1e4929c204d7d2b9');return false;" ;="" onmouseout="RAT_unhesStars('4b4714b491b26192', '2', rh_4b4714b491b26192);return false;"><img name="s2_4b4714b491b26192_img" id="s2_4b4714b491b26192_img" src="google_groups_files/clear_star_blue_outline.gif" width="14" align="absmiddle" height="13"></a><a class="s3" id="s3_4b4714b491b26192" name="s3_4b4714b491b26192" href="javascript:void(0)" onmousemove="RAT_mouseMove(event);" onmousedown="RAT_startTrackingStars('4b4714b491b26192', '3', rh_4b4714b491b26192);return false;" onmouseover="RAT_hesitateStars('4b4714b491b26192', '3', rh_4b4714b491b26192);return false;" onmouseup="RAT_mouseUpInStar('cake-php','4b4714b491b26192','3', rh_4b4714b491b26192, '009b082ac8954f2d1e4929c204d7d2b9');return false;" ;="" onmouseout="RAT_unhesStars('4b4714b491b26192', '3', rh_4b4714b491b26192);return false;"><img name="s3_4b4714b491b26192_img" id="s3_4b4714b491b26192_img" src="google_groups_files/clear_star_blue_outline.gif" width="14" align="absmiddle" height="13"></a><a class="s4" id="s4_4b4714b491b26192" name="s4_4b4714b491b26192" href="javascript:void(0)" onmousemove="RAT_mouseMove(event);" onmousedown="RAT_startTrackingStars('4b4714b491b26192', '4', rh_4b4714b491b26192);return false;" onmouseover="RAT_hesitateStars('4b4714b491b26192', '4', rh_4b4714b491b26192);return false;" onmouseup="RAT_mouseUpInStar('cake-php','4b4714b491b26192','4', rh_4b4714b491b26192, '009b082ac8954f2d1e4929c204d7d2b9');return false;" ;="" onmouseout="RAT_unhesStars('4b4714b491b26192', '4', rh_4b4714b491b26192);return false;"><img name="s4_4b4714b491b26192_img" id="s4_4b4714b491b26192_img" src="google_groups_files/clear_star_blue_outline.gif" width="14" align="absmiddle" height="13"></a><a class="s5" id="s5_4b4714b491b26192" name="s5_4b4714b491b26192" href="javascript:void(0)" onmousemove="RAT_mouseMove(event);" onmousedown="RAT_startTrackingStars('4b4714b491b26192', '5', rh_4b4714b491b26192);return false;" onmouseover="RAT_hesitateStars('4b4714b491b26192', '5', rh_4b4714b491b26192);return false;" onmouseup="RAT_mouseUpInStar('cake-php','4b4714b491b26192','5', rh_4b4714b491b26192, '009b082ac8954f2d1e4929c204d7d2b9');return false;" ;="" onmouseout="RAT_unhesStars('4b4714b491b26192', '5', rh_4b4714b491b26192);return false;"><img name="s5_4b4714b491b26192_img" id="s5_4b4714b491b26192_img" src="google_groups_files/clear_star_blue_outline.gif" width="14" align="absmiddle" height="13"></a></nobr>
  <nobr><span class="fontsize1 hide" style="" id="ratings_text_4b4714b491b26192">Text for clearing space</span></nobr>
  </div>
  </div>
  </div>
  </div>
  <span id="dl_msg_cb2"></span>
  <div id="ftr_sep" class="" style="">
  <table cellpadding="0" cellspacing="0" height="8"><tbody>
  <tr>
  <td class="cbl" id="lc"></td>
  <td class="cbot"></td>
  <td class="cbr"></td>
  </tr>
  </tbody></table>
  </div>
  <div class="mrgb8" id="msg_sep"></div>
  <div class="mrgb2 hide" id="pok" style="margin-top: -5px; position: relative;">
  <table align="center"><tbody><tr><td>
  <div><table width="100%" cellpadding="0" cellspacing="0"><tbody><tr><td><div style="background: transparent url(/groups/roundedcorners?c=fad163&amp;bc&amp;w=2&amp;h=2&amp;a=af) repeat scroll 0px 0px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 2px; height: 2px;"></div></td><td width="100%" bgcolor="#fad163" height="2"><img alt="" width="1" height="1"></td><td><div style="background: transparent url(/groups/roundedcorners?c=fad163&amp;bc&amp;w=2&amp;h=2&amp;a=af) repeat scroll -2px 0px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 2px; height: 2px;"></div></td></tr></tbody></table></div>
  <div class="pokh" style="background-color: rgb(250, 209, 99);">
  <div id="pok_cnt"></div>
  </div>
  <div><table width="100%" cellpadding="0" cellspacing="0"><tbody><tr><td><div style="background: transparent url(/groups/roundedcorners?c=fad163&amp;bc&amp;w=2&amp;h=2&amp;a=af) repeat scroll 0px 2px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 2px; height: 2px;"></div></td><td width="100%" bgcolor="#fad163" height="2"><img alt="" width="1" height="1"></td><td><div style="background: transparent url(/groups/roundedcorners?c=fad163&amp;bc&amp;w=2&amp;h=2&amp;a=af) repeat scroll -2px 2px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 2px; height: 2px;"></div></td></tr></tbody></table></div>
  </td></tr></tbody></table>
  </div>
  </div>
  <div class="hide" id="peml">You must <a target="_top" href="https://www.google.com/groups/signin?cd=US&amp;hl=en&amp;ssip=g3&amp;_done=http%3A%2F%2Fgroups.google.com%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3">Sign in</a> before you can post messages.</div>
  <div class="hide" id="pemj">To post a message you must first <a href="http://groups.google.com/group/cake-php/subscribe" target="_top">join this group</a>.</div>
  <div class="hide" id="peus">Please update your nickname on the <a target="_top" href="http://groups.google.com/group/cake-php/subscribe?reason=post_renew&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">subscription settings</a> page before posting.</div>
  <div class="hide" id="pep">You do not have the permission required to post.</div>
  <script language="javascript1.3"><!--

    
      
      
      
    

    var msg = G2_cardManager._getMessage("4b4714b491b26192");
    msg._init("4b4714b491b26192", "6c48fd86-f94f-4090-80dd-17abe5de7e4a@v3g2000hsc.googlegroups.com", true,
              "over", true, false,
              "", 1);

    

    msg._addPreLoadHook(function() {
      

      
    });

    

    
  //--></script>
</td></tr></tbody></table>
  </div>
  <a name="2f6ff50ac0d367d3" id="anchor_2f6ff50ac0d367d3"></a>
  <div style="margin-left: -3px; margin-right: -1px;">
  <table border="0" cellpadding="0" cellspacing="0"><tbody><tr>
  <td><img src="google_groups_files/dot_clear.gif" width="1" height="1"></td>
  <td width="100%">
  <div class="msg wdth100" id="msg_2f6ff50ac0d367d3" onmouseover="if (G2_cardManager) {G2_cardManager._getMessage('2f6ff50ac0d367d3')._load();}" style="margin: 0pt -1px;">
  <input id="hdn_reply_to_subj" value="using jquery and json on cakephp" type="hidden">
  <input id="hdn_from" value="Loci-master &lt;loci.master@gmail.com&gt;" type="hidden">
  <input id="hdn_date" value="Feb 17, 12:50&nbsp;pm" type="hidden">
  <input id="hdn_author" value="bingo &lt;ragra...@gmail.com&gt;" type="hidden">
  <input id="hdn_group_name" value="CakePHP" type="hidden">
  <div id="hdr">
  <table id="top" class="h msg_meta" cellpadding="0" cellspacing="0"><tbody>
  <tr id="sep">
  <td rowspan="2" id="l" class="ctl"></td>
  <td colspan="4" id="m" class="ctop" height="4"></td>
  <td rowspan="2" id="r" class="ctr"></td>
  </tr>
  <tr>
  <td><span class="fontsize2 author">
  <span style="color: rgb(121, 6, 25);">bingo</span>
  &nbsp;
  </span></td>
  <td width="100%">
  <table class="rc" cellpadding="0" cellspacing="0"><tbody>
  <tr><td><span class="fontsize0" id="prof"><a target="_top" href="http://groups.google.com/groups/profile?enc_user=Bee8IhIAAABFzCC2fgh4WF_RzNnbbYJN8rhlH0Pnl47z4AZhN98BFg">View profile</a></span><div id="body_sum" style="color: rgb(102, 102, 102);" class="fontsize2 hide"></div></td></tr>
  </tbody></table>
  </td>
  <td align="right" nowrap="nowrap">
  <span style="background-color: white;">
  <span class="fontsize2" color="#555555">
  <nobr>
  <img name="s6_2f6ff50ac0d367d3_img" id="s6_2f6ff50ac0d367d3_img" src="google_groups_files/clear_bg_yellow_star_on.gif" width="14" height="13"><img name="s7_2f6ff50ac0d367d3_img" id="s7_2f6ff50ac0d367d3_img" src="google_groups_files/clear_bg_yellow_star_on.gif" width="14" height="13"><img name="s8_2f6ff50ac0d367d3_img" id="s8_2f6ff50ac0d367d3_img" src="google_groups_files/clear_bg_yellow_star_on.gif" width="14" height="13"><img name="s9_2f6ff50ac0d367d3_img" id="s9_2f6ff50ac0d367d3_img" src="google_groups_files/clear_bg_yellow_star_on.gif" width="14" height="13"><img name="s10_2f6ff50ac0d367d3_img" id="s10_2f6ff50ac0d367d3_img" src="google_groups_files/clear_bg_star_off.gif" width="14" height="13"></nobr>
  (3 users)
  </span>
  <span class="fontsize0">&nbsp;<span class="noscripthide scripthide script12inline lk" id="oh_l">More options</span></span>
  <span class="fontsize2">
  Feb 17, 12:50&nbsp;pm
  </span>
  </span>
  </td>
  </tr>
  </tbody></table>
  <div class="scripthide cb" id="oh">
  <div class="exh">
  <div class="fontsize2">
  <div style="padding-left: 20px; text-indent: -16px;">From: <b>bingo &lt;ragra<a target="_parent" href="http://groups.google.com/groups/unlock?msg=2f6ff50ac0d367d3&amp;_done=/group/cake-php/browse_thread/thread/a7480daeb8922d0d/2f6ff50ac0d367d3">...</a>@gmail.com&gt;</b></div>
  <div style="padding-left: 20px; text-indent: -16px;">Date: <b>Sat, 16 Feb 2008 21:50:24 -0800 (PST)</b></div>
  <div style="padding-left: 20px; text-indent: -16px;">Local: <b>Sun, Feb 17 2008 12:50&nbsp;pm
</b></div>
  <div style="padding-left: 20px; text-indent: -16px;">Subject: <b>Re: using jquery and json on cakephp</b></div>
  </div>
  <div class="fontsize1 padall4">
  <a target="_top" id="ra" class="l" href="http://groups.google.com/group/cake-php/post?inreplyto=2f6ff50ac0d367d3&amp;reply_to=author&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">Reply to author</a>
  |
  <a target="_top" id="f" class="l" href="http://groups.google.com/group/cake-php/post?inreplyto=2f6ff50ac0d367d3&amp;forward=1&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">Forward</a>
  | <a target="_blank" class="l" href="http://groups.google.com/group/cake-php/msg/2f6ff50ac0d367d3?dmode=print">Print</a>
  | <a target="_top" class="l" href="http://groups.google.com/group/cake-php/msg/2f6ff50ac0d367d3">Individual message</a>
  | <a target="_blank" class="l" href="http://groups.google.com/group/cake-php/msg/2f6ff50ac0d367d3?dmode=source">Show original</a>
  | <a target="_blank" class="l" href="http://groups.google.com/groups/abuse?group=cake-php&amp;type=message&amp;url=http%3A%2F%2Fgroups.google.com%2Fgroup%2Fcake-php%2Fmsg%2F2f6ff50ac0d367d3&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">Report this message</a>
  | <a target="_top" href="http://groups.google.com/groups/search?enc_author=Bee8IhIAAABFzCC2fgh4WF_RzNnbbYJN8rhlH0Pnl47z4AZhN98BFg&amp;scoring=d">Find messages by this author</a>
  </div>
  </div>
  </div>
  </div>
  <div id="body" class="mb cb fontsize2">
  <div id="inbdy">
  <a name="msg_2f6ff50ac0d367d3"></a>Here are the things that I did to get my jquery, json, and ajax
<br> working
<br> <p>1. I included this line in app/config/routes.php
<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Router::parseExtensions('rss', 'json', 'xml'); &nbsp;//notice
<br> json over there
<br> </p><p>2. Then, I created a folder named "json" in my views/post..so my views
<br> folder structure look like this
<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; views
<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;post
<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; json
<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; message.ctp
<br> </p><p>In message.ctp, I am using this code to convert PHP array (that came
<br> from controller) to json format
<br> </p><p>&lt;?php
<br> echo $javascript-&gt;object($message); &nbsp; //$message is the PHP array
<br> ?&gt;
<br> </p><p>3. Now, when I need to data in ajax format, I just add the extension
<br> "json" to my controller-method call. So for the above method
<br> "message", my url look like this
<br> </p><p>So the url for the ajax call in this case is
<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jQuery.ajax("<a target="_blank" rel="nofollow" href="http://localhost/site/post/message.json">http://localhost/site/post/message.json</a>",
<br> function(){
<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //add your function here
<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;});
<br> </p><p>This will be give you json data as output
<br> </p><p>The good thing with this approach is that if you remove "json" from
<br> your url, you will get normal output. This assuming you have a file
<br> "message.ctp" in views/post
<br> </p><p>hope this helps
<br> Regards,
<br> </p><p>On Feb 16, 3:53&nbsp;pm, mike &lt;mikezmontesi<a target="_parent" href="http://groups.google.com/groups/unlock?msg=2f6ff50ac0d367d3&amp;_done=/group/cake-php/browse_thread/thread/a7480daeb8922d0d/2f6ff50ac0d367d3">...</a>@gmail.com&gt; wrote:
<br> </p><p><a class="qt" href="http://groups.google.com/group/cake-php/browse_thread/thread/a7480daeb8922d0d/2f6ff50ac0d367d3?hide_quotes=no#msg_2f6ff50ac0d367d3" onclick="return tog_quote(460387); "><div id="qheader_shown_460387" class="hqt" style="display: none;">- Hide quoted text -</div><div id="qheader_hidden_460387" class="sqt" style="display: block;">- Show quoted text -</div></a></p><div id="qhide_460387" style="display: none;" class="qt">&gt; How do I send and process ajax request using jquery's .getJson() on
<br> &gt; cakephp. I need to setup dynamic dropdown box? Thanks <br> <br></div>
  </div>
  <br style="font-size: 8px;" clear="all">
  </div>
  <div id="cb" class="">
  <div class="cg cb2">
  <div class="cg cb2">
  <div class="cg cb2"><span class="fontsize1">&nbsp;
  <span class="lc" id="ra">&nbsp;&nbsp;<a target="_top" href="http://groups.google.com/group/cake-php/post?inreplyto=2f6ff50ac0d367d3&amp;reply_to=author&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">Reply to author</a>&nbsp;&nbsp;</span><span class="lc" id="f">&nbsp;&nbsp;<a target="_top" href="http://groups.google.com/group/cake-php/post?inreplyto=2f6ff50ac0d367d3&amp;forward=1&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">Forward</a>&nbsp;&nbsp;</span></span>
  <span class="fontsize1">&nbsp;&nbsp;&nbsp;&nbsp;Rate this post:</span>
  <script language="javascript1.2"><!--
        var rh_2f6ff50ac0d367d3 = new RAT_RatingHolder('2f6ff50ac0d367d3', '0', '');
      //--></script>
  <nobr>
  <a class="s1" id="s1_2f6ff50ac0d367d3" name="s1_2f6ff50ac0d367d3" href="javascript:void(0)" onmousemove="RAT_mouseMove(event);" onmousedown="RAT_startTrackingStars('2f6ff50ac0d367d3', '1', rh_2f6ff50ac0d367d3);return false;" onmouseover="RAT_hesitateStars('2f6ff50ac0d367d3', '1', rh_2f6ff50ac0d367d3);return false;" onmouseup="RAT_mouseUpInStar('cake-php','2f6ff50ac0d367d3','1', rh_2f6ff50ac0d367d3, '009b082ac8954f2d1e4929c204d7d2b9');return false;" ;="" onmouseout="RAT_unhesStars('2f6ff50ac0d367d3', '1', rh_2f6ff50ac0d367d3);return false;"><img name="s1_2f6ff50ac0d367d3_img" id="s1_2f6ff50ac0d367d3_img" src="google_groups_files/clear_star_blue_outline.gif" width="14" align="absmiddle" height="13"></a><a class="s2" id="s2_2f6ff50ac0d367d3" name="s2_2f6ff50ac0d367d3" href="javascript:void(0)" onmousemove="RAT_mouseMove(event);" onmousedown="RAT_startTrackingStars('2f6ff50ac0d367d3', '2', rh_2f6ff50ac0d367d3);return false;" onmouseover="RAT_hesitateStars('2f6ff50ac0d367d3', '2', rh_2f6ff50ac0d367d3);return false;" onmouseup="RAT_mouseUpInStar('cake-php','2f6ff50ac0d367d3','2', rh_2f6ff50ac0d367d3, '009b082ac8954f2d1e4929c204d7d2b9');return false;" ;="" onmouseout="RAT_unhesStars('2f6ff50ac0d367d3', '2', rh_2f6ff50ac0d367d3);return false;"><img name="s2_2f6ff50ac0d367d3_img" id="s2_2f6ff50ac0d367d3_img" src="google_groups_files/clear_star_blue_outline.gif" width="14" align="absmiddle" height="13"></a><a class="s3" id="s3_2f6ff50ac0d367d3" name="s3_2f6ff50ac0d367d3" href="javascript:void(0)" onmousemove="RAT_mouseMove(event);" onmousedown="RAT_startTrackingStars('2f6ff50ac0d367d3', '3', rh_2f6ff50ac0d367d3);return false;" onmouseover="RAT_hesitateStars('2f6ff50ac0d367d3', '3', rh_2f6ff50ac0d367d3);return false;" onmouseup="RAT_mouseUpInStar('cake-php','2f6ff50ac0d367d3','3', rh_2f6ff50ac0d367d3, '009b082ac8954f2d1e4929c204d7d2b9');return false;" ;="" onmouseout="RAT_unhesStars('2f6ff50ac0d367d3', '3', rh_2f6ff50ac0d367d3);return false;"><img name="s3_2f6ff50ac0d367d3_img" id="s3_2f6ff50ac0d367d3_img" src="google_groups_files/clear_star_blue_outline.gif" width="14" align="absmiddle" height="13"></a><a class="s4" id="s4_2f6ff50ac0d367d3" name="s4_2f6ff50ac0d367d3" href="javascript:void(0)" onmousemove="RAT_mouseMove(event);" onmousedown="RAT_startTrackingStars('2f6ff50ac0d367d3', '4', rh_2f6ff50ac0d367d3);return false;" onmouseover="RAT_hesitateStars('2f6ff50ac0d367d3', '4', rh_2f6ff50ac0d367d3);return false;" onmouseup="RAT_mouseUpInStar('cake-php','2f6ff50ac0d367d3','4', rh_2f6ff50ac0d367d3, '009b082ac8954f2d1e4929c204d7d2b9');return false;" ;="" onmouseout="RAT_unhesStars('2f6ff50ac0d367d3', '4', rh_2f6ff50ac0d367d3);return false;"><img name="s4_2f6ff50ac0d367d3_img" id="s4_2f6ff50ac0d367d3_img" src="google_groups_files/clear_star_blue_outline.gif" width="14" align="absmiddle" height="13"></a><a class="s5" id="s5_2f6ff50ac0d367d3" name="s5_2f6ff50ac0d367d3" href="javascript:void(0)" onmousemove="RAT_mouseMove(event);" onmousedown="RAT_startTrackingStars('2f6ff50ac0d367d3', '5', rh_2f6ff50ac0d367d3);return false;" onmouseover="RAT_hesitateStars('2f6ff50ac0d367d3', '5', rh_2f6ff50ac0d367d3);return false;" onmouseup="RAT_mouseUpInStar('cake-php','2f6ff50ac0d367d3','5', rh_2f6ff50ac0d367d3, '009b082ac8954f2d1e4929c204d7d2b9');return false;" ;="" onmouseout="RAT_unhesStars('2f6ff50ac0d367d3', '5', rh_2f6ff50ac0d367d3);return false;"><img name="s5_2f6ff50ac0d367d3_img" id="s5_2f6ff50ac0d367d3_img" src="google_groups_files/clear_star_blue_outline.gif" width="14" align="absmiddle" height="13"></a></nobr>
  <nobr><span class="fontsize1 hide" style="" id="ratings_text_2f6ff50ac0d367d3">Text for clearing space</span></nobr>
  </div>
  </div>
  </div>
  </div>
  <span id="dl_msg_cb2"></span>
  <div id="ftr_sep" class="" style="">
  <table cellpadding="0" cellspacing="0" height="8"><tbody>
  <tr>
  <td class="cbl" id="lc"></td>
  <td class="cbot"></td>
  <td class="cbr"></td>
  </tr>
  </tbody></table>
  </div>
  <div class="mrgb8" id="msg_sep"></div>
  <div class="mrgb2 hide" id="pok" style="margin-top: -5px; position: relative;">
  <table align="center"><tbody><tr><td>
  <div><table width="100%" cellpadding="0" cellspacing="0"><tbody><tr><td><div style="background: transparent url(/groups/roundedcorners?c=fad163&amp;bc&amp;w=2&amp;h=2&amp;a=af) repeat scroll 0px 0px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 2px; height: 2px;"></div></td><td width="100%" bgcolor="#fad163" height="2"><img alt="" width="1" height="1"></td><td><div style="background: transparent url(/groups/roundedcorners?c=fad163&amp;bc&amp;w=2&amp;h=2&amp;a=af) repeat scroll -2px 0px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 2px; height: 2px;"></div></td></tr></tbody></table></div>
  <div class="pokh" style="background-color: rgb(250, 209, 99);">
  <div id="pok_cnt"></div>
  </div>
  <div><table width="100%" cellpadding="0" cellspacing="0"><tbody><tr><td><div style="background: transparent url(/groups/roundedcorners?c=fad163&amp;bc&amp;w=2&amp;h=2&amp;a=af) repeat scroll 0px 2px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 2px; height: 2px;"></div></td><td width="100%" bgcolor="#fad163" height="2"><img alt="" width="1" height="1"></td><td><div style="background: transparent url(/groups/roundedcorners?c=fad163&amp;bc&amp;w=2&amp;h=2&amp;a=af) repeat scroll -2px 2px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 2px; height: 2px;"></div></td></tr></tbody></table></div>
  </td></tr></tbody></table>
  </div>
  </div>
  <div class="hide" id="peml">You must <a target="_top" href="https://www.google.com/groups/signin?cd=US&amp;hl=en&amp;ssip=g3&amp;_done=http%3A%2F%2Fgroups.google.com%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3">Sign in</a> before you can post messages.</div>
  <div class="hide" id="pemj">To post a message you must first <a href="http://groups.google.com/group/cake-php/subscribe" target="_top">join this group</a>.</div>
  <div class="hide" id="peus">Please update your nickname on the <a target="_top" href="http://groups.google.com/group/cake-php/subscribe?reason=post_renew&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">subscription settings</a> page before posting.</div>
  <div class="hide" id="pep">You do not have the permission required to post.</div>
  <script language="javascript1.3"><!--

    
      
      
      
    

    var msg = G2_cardManager._getMessage("2f6ff50ac0d367d3");
    msg._init("2f6ff50ac0d367d3", "266afc6e-ffc4-4bcf-a4d0-c974ae65ecde@k2g2000hse.googlegroups.com", true,
              "over", true, false,
              "", 1);

    
      msg._setPrev(G2_cardManager._getCard("msg_4b4714b491b26192"),
                   1);
    

    msg._addPreLoadHook(function() {
      

      
    });

    

    
  //--></script>
</td></tr></tbody></table>
  </div>
  <a name="55eeef327818ca55" id="anchor_55eeef327818ca55"></a>
  <div style="margin-left: -3px; margin-right: -1px;">
  <table border="0" cellpadding="0" cellspacing="0"><tbody><tr>
  <td><img src="google_groups_files/dot_clear.gif" width="1" height="1"></td>
  <td width="100%">
  <div class="msg wdth100" id="msg_55eeef327818ca55" onmouseover="if (G2_cardManager) {G2_cardManager._getMessage('55eeef327818ca55')._load();}" style="margin: 0pt -1px;">
  <input id="hdn_reply_to_subj" value="using jquery and json on cakephp" type="hidden">
  <input id="hdn_from" value="Loci-master &lt;loci.master@gmail.com&gt;" type="hidden">
  <input id="hdn_date" value="Feb 17, 5:19&nbsp;pm" type="hidden">
  <input id="hdn_author" value="mike &lt;mikezmontesi...@gmail.com&gt;" type="hidden">
  <input id="hdn_group_name" value="CakePHP" type="hidden">
  <div id="hdr">
  <table id="top" class="h msg_meta" cellpadding="0" cellspacing="0"><tbody>
  <tr id="sep">
  <td rowspan="2" id="l" class="ctl"></td>
  <td colspan="4" id="m" class="ctop" height="4"></td>
  <td rowspan="2" id="r" class="ctr"></td>
  </tr>
  <tr>
  <td><span class="fontsize2 author">
  <span style="color: rgb(0, 104, 28);">mike</span>
  &nbsp;
  </span></td>
  <td width="100%">
  <table class="rc" cellpadding="0" cellspacing="0"><tbody>
  <tr><td><span class="fontsize0" id="prof"><a target="_top" href="http://groups.google.com/groups/profile?enc_user=LaZK3xkAAABy3Xm7OwyhM-sRwVR9Y8DbFEmssiLmwyaEWxy9LPEfEQ">View profile</a></span><div id="body_sum" style="color: rgb(102, 102, 102);" class="fontsize2 hide"></div></td></tr>
  </tbody></table>
  </td>
  <td align="right" nowrap="nowrap">
  <span style="background-color: white;">
  <span class="fontsize0">&nbsp;<span class="noscripthide scripthide script12inline lk" id="oh_l">More options</span></span>
  <span class="fontsize2">
  Feb 17, 5:19&nbsp;pm
  </span>
  </span>
  </td>
  </tr>
  </tbody></table>
  <div class="scripthide cb" id="oh">
  <div class="exh">
  <div class="fontsize2">
  <div style="padding-left: 20px; text-indent: -16px;">From: <b>mike &lt;mikezmontesi<a target="_parent" href="http://groups.google.com/groups/unlock?msg=55eeef327818ca55&amp;_done=/group/cake-php/browse_thread/thread/a7480daeb8922d0d/2f6ff50ac0d367d3">...</a>@gmail.com&gt;</b></div>
  <div style="padding-left: 20px; text-indent: -16px;">Date: <b>Sun, 17 Feb 2008 02:19:23 -0800 (PST)</b></div>
  <div style="padding-left: 20px; text-indent: -16px;">Local: <b>Sun, Feb 17 2008 5:19&nbsp;pm
</b></div>
  <div style="padding-left: 20px; text-indent: -16px;">Subject: <b>Re: using jquery and json on cakephp</b></div>
  </div>
  <div class="fontsize1 padall4">
  <a target="_top" id="ra" class="l" href="http://groups.google.com/group/cake-php/post?inreplyto=55eeef327818ca55&amp;reply_to=author&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">Reply to author</a>
  |
  <a target="_top" id="f" class="l" href="http://groups.google.com/group/cake-php/post?inreplyto=55eeef327818ca55&amp;forward=1&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">Forward</a>
  | <a target="_blank" class="l" href="http://groups.google.com/group/cake-php/msg/55eeef327818ca55?dmode=print">Print</a>
  | <a target="_top" class="l" href="http://groups.google.com/group/cake-php/msg/55eeef327818ca55">Individual message</a>
  | <a target="_blank" class="l" href="http://groups.google.com/group/cake-php/msg/55eeef327818ca55?dmode=source">Show original</a>
  | <a target="_blank" class="l" href="http://groups.google.com/groups/abuse?group=cake-php&amp;type=message&amp;url=http%3A%2F%2Fgroups.google.com%2Fgroup%2Fcake-php%2Fmsg%2F55eeef327818ca55&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">Report this message</a>
  | <a target="_top" href="http://groups.google.com/groups/search?enc_author=LaZK3xkAAABy3Xm7OwyhM-sRwVR9Y8DbFEmssiLmwyaEWxy9LPEfEQ&amp;scoring=d">Find messages by this author</a>
  </div>
  </div>
  </div>
  </div>
  <div id="body" class="mb cb fontsize2">
  <div id="inbdy">
  <a name="msg_55eeef327818ca55"></a>Thanks dude:)
<br> I Gonna try this out
<br> <p>On Feb 17, 9:50 am, bingo &lt;ragra<a target="_parent" href="http://groups.google.com/groups/unlock?msg=55eeef327818ca55&amp;_done=/group/cake-php/browse_thread/thread/a7480daeb8922d0d/2f6ff50ac0d367d3">...</a>@gmail.com&gt; wrote:
<br> </p><p><a class="qt" href="http://groups.google.com/group/cake-php/browse_thread/thread/a7480daeb8922d0d/2f6ff50ac0d367d3?hide_quotes=no#msg_55eeef327818ca55" onclick="return tog_quote(460388); "><div id="qheader_shown_460388" class="hqt" style="display: none;">- Hide quoted text -</div><div id="qheader_hidden_460388" class="sqt" style="display: block;">- Show quoted text -</div></a></p><div id="qhide_460388" style="display: none;" class="qt">&gt; Here are the things that I did to get my jquery, json, and ajax
<br> &gt; working
<br> <p>&gt; 1. I included this line in app/config/routes.php
<br> &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Router::parseExtensions('rss', 'json', 'xml'); &nbsp;//notice
<br> &gt; json over there
<br> </p><p>&gt; 2. Then, I created a folder named "json" in my views/post..so my views
<br> &gt; folder structure look like this
<br> &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; views
<br> &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;post
<br> &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; json
<br> &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; message.ctp
<br> </p><p>&gt; In message.ctp, I am using this code to convert PHP array (that came
<br> &gt; from controller) to json format
<br> </p><p>&gt; &lt;?php
<br> &gt; echo $javascript-&gt;object($message); &nbsp; //$message is the PHP array
<br> &gt; ?&gt;
<br> </p><p>&gt; 3. Now, when I need to data in ajax format, I just add the extension
<br> &gt; "json" to my controller-method call. So for the above method
<br> &gt; "message", my url look like this
<br> </p><p>&gt; So the url for the ajax call in this case is
<br> &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jQuery.ajax("<a target="_blank" rel="nofollow" href="http://localhost/site/post/message.json">http://localhost/site/post/message.json</a>",
<br> &gt; function(){
<br> &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //add your function here
<br> &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;});
<br> </p><p>&gt; This will be give you json data as output
<br> </p><p>&gt; The good thing with this approach is that if you remove "json" from
<br> &gt; your url, you will get normal output. This assuming you have a file
<br> &gt; "message.ctp" in views/post
<br> </p><p>&gt; hope this helps
<br> &gt; Regards,
<br> </p><p>&gt; On Feb 16, 3:53 pm, mike &lt;mikezmontesi<a target="_parent" href="http://groups.google.com/groups/unlock?msg=55eeef327818ca55&amp;_done=/group/cake-php/browse_thread/thread/a7480daeb8922d0d/2f6ff50ac0d367d3">...</a>@gmail.com&gt; wrote:
<br> </p><p>&gt; &gt; How do I send and process ajax request using jquery's .getJson() on
<br> &gt; &gt; cakephp. I need to setup dynamic dropdown box? Thanks
<br> <br></p></div>
  </div>
  <br style="font-size: 8px;" clear="all">
  </div>
  <div id="cb" class="">
  <div class="cg cb2">
  <div class="cg cb2">
  <div class="cg cb2"><span class="fontsize1">&nbsp;
  <span class="lc" id="ra">&nbsp;&nbsp;<a target="_top" href="http://groups.google.com/group/cake-php/post?inreplyto=55eeef327818ca55&amp;reply_to=author&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">Reply to author</a>&nbsp;&nbsp;</span><span class="lc" id="f">&nbsp;&nbsp;<a target="_top" href="http://groups.google.com/group/cake-php/post?inreplyto=55eeef327818ca55&amp;forward=1&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">Forward</a>&nbsp;&nbsp;</span></span>
  <span class="fontsize1">&nbsp;&nbsp;&nbsp;&nbsp;Rate this post:</span>
  <script language="javascript1.2"><!--
        var rh_55eeef327818ca55 = new RAT_RatingHolder('55eeef327818ca55', '0', '');
      //--></script>
  <nobr>
  <a class="s1" id="s1_55eeef327818ca55" name="s1_55eeef327818ca55" href="javascript:void(0)" onmousemove="RAT_mouseMove(event);" onmousedown="RAT_startTrackingStars('55eeef327818ca55', '1', rh_55eeef327818ca55);return false;" onmouseover="RAT_hesitateStars('55eeef327818ca55', '1', rh_55eeef327818ca55);return false;" onmouseup="RAT_mouseUpInStar('cake-php','55eeef327818ca55','1', rh_55eeef327818ca55, '009b082ac8954f2d1e4929c204d7d2b9');return false;" ;="" onmouseout="RAT_unhesStars('55eeef327818ca55', '1', rh_55eeef327818ca55);return false;"><img name="s1_55eeef327818ca55_img" id="s1_55eeef327818ca55_img" src="google_groups_files/clear_star_blue_outline.gif" width="14" align="absmiddle" height="13"></a><a class="s2" id="s2_55eeef327818ca55" name="s2_55eeef327818ca55" href="javascript:void(0)" onmousemove="RAT_mouseMove(event);" onmousedown="RAT_startTrackingStars('55eeef327818ca55', '2', rh_55eeef327818ca55);return false;" onmouseover="RAT_hesitateStars('55eeef327818ca55', '2', rh_55eeef327818ca55);return false;" onmouseup="RAT_mouseUpInStar('cake-php','55eeef327818ca55','2', rh_55eeef327818ca55, '009b082ac8954f2d1e4929c204d7d2b9');return false;" ;="" onmouseout="RAT_unhesStars('55eeef327818ca55', '2', rh_55eeef327818ca55);return false;"><img name="s2_55eeef327818ca55_img" id="s2_55eeef327818ca55_img" src="google_groups_files/clear_star_blue_outline.gif" width="14" align="absmiddle" height="13"></a><a class="s3" id="s3_55eeef327818ca55" name="s3_55eeef327818ca55" href="javascript:void(0)" onmousemove="RAT_mouseMove(event);" onmousedown="RAT_startTrackingStars('55eeef327818ca55', '3', rh_55eeef327818ca55);return false;" onmouseover="RAT_hesitateStars('55eeef327818ca55', '3', rh_55eeef327818ca55);return false;" onmouseup="RAT_mouseUpInStar('cake-php','55eeef327818ca55','3', rh_55eeef327818ca55, '009b082ac8954f2d1e4929c204d7d2b9');return false;" ;="" onmouseout="RAT_unhesStars('55eeef327818ca55', '3', rh_55eeef327818ca55);return false;"><img name="s3_55eeef327818ca55_img" id="s3_55eeef327818ca55_img" src="google_groups_files/clear_star_blue_outline.gif" width="14" align="absmiddle" height="13"></a><a class="s4" id="s4_55eeef327818ca55" name="s4_55eeef327818ca55" href="javascript:void(0)" onmousemove="RAT_mouseMove(event);" onmousedown="RAT_startTrackingStars('55eeef327818ca55', '4', rh_55eeef327818ca55);return false;" onmouseover="RAT_hesitateStars('55eeef327818ca55', '4', rh_55eeef327818ca55);return false;" onmouseup="RAT_mouseUpInStar('cake-php','55eeef327818ca55','4', rh_55eeef327818ca55, '009b082ac8954f2d1e4929c204d7d2b9');return false;" ;="" onmouseout="RAT_unhesStars('55eeef327818ca55', '4', rh_55eeef327818ca55);return false;"><img name="s4_55eeef327818ca55_img" id="s4_55eeef327818ca55_img" src="google_groups_files/clear_star_blue_outline.gif" width="14" align="absmiddle" height="13"></a><a class="s5" id="s5_55eeef327818ca55" name="s5_55eeef327818ca55" href="javascript:void(0)" onmousemove="RAT_mouseMove(event);" onmousedown="RAT_startTrackingStars('55eeef327818ca55', '5', rh_55eeef327818ca55);return false;" onmouseover="RAT_hesitateStars('55eeef327818ca55', '5', rh_55eeef327818ca55);return false;" onmouseup="RAT_mouseUpInStar('cake-php','55eeef327818ca55','5', rh_55eeef327818ca55, '009b082ac8954f2d1e4929c204d7d2b9');return false;" ;="" onmouseout="RAT_unhesStars('55eeef327818ca55', '5', rh_55eeef327818ca55);return false;"><img name="s5_55eeef327818ca55_img" id="s5_55eeef327818ca55_img" src="google_groups_files/clear_star_blue_outline.gif" width="14" align="absmiddle" height="13"></a></nobr>
  <nobr><span class="fontsize1 hide" style="" id="ratings_text_55eeef327818ca55">Text for clearing space</span></nobr>
  </div>
  </div>
  </div>
  </div>
  <span id="dl_msg_cb2"></span>
  <div id="ftr_sep" class="" style="">
  <table cellpadding="0" cellspacing="0" height="8"><tbody>
  <tr>
  <td class="cbl" id="lc"></td>
  <td class="cbot"></td>
  <td class="cbr"></td>
  </tr>
  </tbody></table>
  </div>
  <div class="mrgb8" id="msg_sep"></div>
  <div class="mrgb2 hide" id="pok" style="margin-top: -5px; position: relative;">
  <table align="center"><tbody><tr><td>
  <div><table width="100%" cellpadding="0" cellspacing="0"><tbody><tr><td><div style="background: transparent url(/groups/roundedcorners?c=fad163&amp;bc&amp;w=2&amp;h=2&amp;a=af) repeat scroll 0px 0px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 2px; height: 2px;"></div></td><td width="100%" bgcolor="#fad163" height="2"><img alt="" width="1" height="1"></td><td><div style="background: transparent url(/groups/roundedcorners?c=fad163&amp;bc&amp;w=2&amp;h=2&amp;a=af) repeat scroll -2px 0px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 2px; height: 2px;"></div></td></tr></tbody></table></div>
  <div class="pokh" style="background-color: rgb(250, 209, 99);">
  <div id="pok_cnt"></div>
  </div>
  <div><table width="100%" cellpadding="0" cellspacing="0"><tbody><tr><td><div style="background: transparent url(/groups/roundedcorners?c=fad163&amp;bc&amp;w=2&amp;h=2&amp;a=af) repeat scroll 0px 2px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 2px; height: 2px;"></div></td><td width="100%" bgcolor="#fad163" height="2"><img alt="" width="1" height="1"></td><td><div style="background: transparent url(/groups/roundedcorners?c=fad163&amp;bc&amp;w=2&amp;h=2&amp;a=af) repeat scroll -2px 2px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 2px; height: 2px;"></div></td></tr></tbody></table></div>
  </td></tr></tbody></table>
  </div>
  </div>
  <div class="hide" id="peml">You must <a target="_top" href="https://www.google.com/groups/signin?cd=US&amp;hl=en&amp;ssip=g3&amp;_done=http%3A%2F%2Fgroups.google.com%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3">Sign in</a> before you can post messages.</div>
  <div class="hide" id="pemj">To post a message you must first <a href="http://groups.google.com/group/cake-php/subscribe" target="_top">join this group</a>.</div>
  <div class="hide" id="peus">Please update your nickname on the <a target="_top" href="http://groups.google.com/group/cake-php/subscribe?reason=post_renew&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">subscription settings</a> page before posting.</div>
  <div class="hide" id="pep">You do not have the permission required to post.</div>
  <script language="javascript1.3"><!--

    
      
      
      
    

    var msg = G2_cardManager._getMessage("55eeef327818ca55");
    msg._init("55eeef327818ca55", "ca4f8371-6ac2-474b-9f47-bc9fb44a6865@n75g2000hsh.googlegroups.com", true,
              "over", true, false,
              "", 1);

    
      msg._setPrev(G2_cardManager._getCard("msg_2f6ff50ac0d367d3"),
                   1);
    

    msg._addPreLoadHook(function() {
      

      
    });

    

    
  //--></script>
</td></tr></tbody></table>
  </div>
  <a name="478c37ede1553ccd" id="anchor_478c37ede1553ccd"></a>
  <div style="margin-left: -3px; margin-right: -1px;">
  <table border="0" cellpadding="0" cellspacing="0"><tbody><tr>
  <td><img src="google_groups_files/dot_clear.gif" width="1" height="1"></td>
  <td width="100%">
  <div class="msg wdth100" id="msg_478c37ede1553ccd" onmouseover="if (G2_cardManager) {G2_cardManager._getMessage('478c37ede1553ccd')._load();}" style="margin: 0pt -1px;">
  <input id="hdn_reply_to_subj" value="using jquery and json on cakephp" type="hidden">
  <input id="hdn_from" value="Loci-master &lt;loci.master@gmail.com&gt;" type="hidden">
  <input id="hdn_date" value="Apr 14, 9:30&nbsp;am" type="hidden">
  <input id="hdn_author" value="Freshow &lt;dyh1...@gmail.com&gt;" type="hidden">
  <input id="hdn_group_name" value="CakePHP" type="hidden">
  <div id="hdr">
  <table id="top" class="h msg_meta" cellpadding="0" cellspacing="0"><tbody>
  <tr id="sep">
  <td rowspan="2" id="l" class="ctl"></td>
  <td colspan="4" id="m" class="ctop" height="4"></td>
  <td rowspan="2" id="r" class="ctr"></td>
  </tr>
  <tr>
  <td><span class="fontsize2 author">
  <span style="color: rgb(91, 16, 148);">Freshow</span>
  &nbsp;
  </span></td>
  <td width="100%">
  <table class="rc" cellpadding="0" cellspacing="0"><tbody>
  <tr><td><span class="fontsize0" id="prof"><a target="_top" href="http://groups.google.com/groups/profile?enc_user=gyVvCBEAAABT_q6Fnx0AXPqhd58IeJ-nkdEasx1kiYTQavV7mdW13Q">View profile</a></span><div id="body_sum" style="color: rgb(102, 102, 102);" class="fontsize2 hide"></div></td></tr>
  </tbody></table>
  </td>
  <td align="right" nowrap="nowrap">
  <span style="background-color: white;">
  <span class="fontsize0">&nbsp;<span class="noscripthide scripthide script12inline lk" id="oh_l">More options</span></span>
  <span class="fontsize2">
  Apr 14, 9:30&nbsp;am
  </span>
  </span>
  </td>
  </tr>
  </tbody></table>
  <div class="scripthide cb" id="oh">
  <div class="exh">
  <div class="fontsize2">
  <div style="padding-left: 20px; text-indent: -16px;">From: <b>Freshow &lt;dyh1<a target="_parent" href="http://groups.google.com/groups/unlock?msg=478c37ede1553ccd&amp;_done=/group/cake-php/browse_thread/thread/a7480daeb8922d0d/2f6ff50ac0d367d3">...</a>@gmail.com&gt;</b></div>
  <div style="padding-left: 20px; text-indent: -16px;">Date: <b>Sun, 13 Apr 2008 19:30:58 -0700 (PDT)</b></div>
  <div style="padding-left: 20px; text-indent: -16px;">Local: <b>Mon, Apr 14 2008 9:30&nbsp;am
</b></div>
  <div style="padding-left: 20px; text-indent: -16px;">Subject: <b>Re: using jquery and json on cakephp</b></div>
  </div>
  <div class="fontsize1 padall4">
  <a target="_top" id="r" class="l" href="http://groups.google.com/group/cake-php/post?inreplyto=478c37ede1553ccd&amp;reply_to=group&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">Reply</a>
  |
  <a target="_top" id="ra" class="l" href="http://groups.google.com/group/cake-php/post?inreplyto=478c37ede1553ccd&amp;reply_to=author&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">Reply to author</a>
  |
  <a target="_top" id="f" class="l" href="http://groups.google.com/group/cake-php/post?inreplyto=478c37ede1553ccd&amp;forward=1&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">Forward</a>
  | <a target="_blank" class="l" href="http://groups.google.com/group/cake-php/msg/478c37ede1553ccd?dmode=print">Print</a>
  | <a target="_top" class="l" href="http://groups.google.com/group/cake-php/msg/478c37ede1553ccd">Individual message</a>
  | <a target="_blank" class="l" href="http://groups.google.com/group/cake-php/msg/478c37ede1553ccd?dmode=source">Show original</a>
  | <a target="_blank" class="l" href="http://groups.google.com/groups/abuse?group=cake-php&amp;type=message&amp;url=http%3A%2F%2Fgroups.google.com%2Fgroup%2Fcake-php%2Fmsg%2F478c37ede1553ccd&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">Report this message</a>
  | <a target="_top" href="http://groups.google.com/groups/search?enc_author=gyVvCBEAAABT_q6Fnx0AXPqhd58IeJ-nkdEasx1kiYTQavV7mdW13Q&amp;scoring=d">Find messages by this author</a>
  </div>
  </div>
  </div>
  </div>
  <div id="body" class="mb cb fontsize2">
  <div id="inbdy">
  <a name="msg_478c37ede1553ccd"></a>It's useful，but &nbsp;if I let 'post/message.ctp' output nothing, I cannot
<br> get anything by '/post/message.json', what's the problem
<br> <p>On 2月17日, 下午1时50分, bingo &lt;ragra<a target="_parent" href="http://groups.google.com/groups/unlock?msg=478c37ede1553ccd&amp;_done=/group/cake-php/browse_thread/thread/a7480daeb8922d0d/2f6ff50ac0d367d3">...</a>@gmail.com&gt; wrote:
<br> </p><p><a class="qt" href="http://groups.google.com/group/cake-php/browse_thread/thread/a7480daeb8922d0d/2f6ff50ac0d367d3?hide_quotes=no#msg_478c37ede1553ccd" onclick="return tog_quote(460389); "><div id="qheader_shown_460389" class="hqt" style="display: none;">- Hide quoted text -</div><div id="qheader_hidden_460389" class="sqt" style="display: block;">- Show quoted text -</div></a></p><div id="qhide_460389" style="display: none;" class="qt">&gt; Here are the things that I did to get my jquery, json, and ajax
<br> &gt; working
<br> <p>&gt; 1. I included this line in app/config/routes.php
<br> &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Router::parseExtensions('rss', 'json', 'xml'); &nbsp;//notice
<br> &gt; json over there
<br> </p><p>&gt; 2. Then, I created a folder named "json" in my views/post..so my views
<br> &gt; folder structure look like this
<br> &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; views
<br> &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;post
<br> &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; json
<br> &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; message.ctp
<br> </p><p>&gt; In message.ctp, I am using this code to convert PHP array (that came
<br> &gt; from controller) to json format
<br> </p><p>&gt; &lt;?php
<br> &gt; echo $javascript-&gt;object($message); &nbsp; //$message is the PHP array
<br> &gt; ?&gt;
<br> </p><p>&gt; 3. Now, when I need to data in ajax format, I just add the extension
<br> &gt; "json" to my controller-method call. So for the above method
<br> &gt; "message", my url look like this
<br> </p><p>&gt; So the url for the ajax call in this case is
<br> &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jQuery.ajax("<a target="_blank" rel="nofollow" href="http://localhost/site/post/message.json">http://localhost/site/post/message.json</a>",
<br> &gt; function(){
<br> &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //add your function here
<br> &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;});
<br> </p><p>&gt; This will be give you json data as output
<br> </p><p>&gt; The good thing with this approach is that if you remove "json" from
<br> &gt; your url, you will get normal output. This assuming you have a file
<br> &gt; "message.ctp" in views/post
<br> </p><p>&gt; hope this helps
<br> &gt; Regards,
<br> </p><p>&gt; On Feb 16, 3:53 pm, mike &lt;mikezmontesi<a target="_parent" href="http://groups.google.com/groups/unlock?msg=478c37ede1553ccd&amp;_done=/group/cake-php/browse_thread/thread/a7480daeb8922d0d/2f6ff50ac0d367d3">...</a>@gmail.com&gt; wrote:
<br> </p><p>&gt; &gt; How do I send and process ajax request using jquery's .getJson() on
<br> &gt; &gt; cakephp. I need to setup dynamic dropdown box? Thanks <br> <br></p></div>
  </div>
  <br style="font-size: 8px;" clear="all">
  </div>
  <div id="cb" class="">
  <div class="cg cb2">
  <div class="cg cb2">
  <div class="cg cb2"><span class="fontsize1">&nbsp;
  <span class="lc b" id="r">&nbsp;&nbsp;<a target="_top" href="http://groups.google.com/group/cake-php/post?inreplyto=478c37ede1553ccd&amp;reply_to=group&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">Reply</a>&nbsp;&nbsp;</span><span class="lc" id="ra">&nbsp;&nbsp;<a target="_top" href="http://groups.google.com/group/cake-php/post?inreplyto=478c37ede1553ccd&amp;reply_to=author&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">Reply to author</a>&nbsp;&nbsp;</span><span class="lc" id="f">&nbsp;&nbsp;<a target="_top" href="http://groups.google.com/group/cake-php/post?inreplyto=478c37ede1553ccd&amp;forward=1&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">Forward</a>&nbsp;&nbsp;</span></span>
  <span class="fontsize1">&nbsp;&nbsp;&nbsp;&nbsp;Rate this post:</span>
  <script language="javascript1.2"><!--
        var rh_478c37ede1553ccd = new RAT_RatingHolder('478c37ede1553ccd', '0', '');
      //--></script>
  <nobr>
  <a class="s1" id="s1_478c37ede1553ccd" name="s1_478c37ede1553ccd" href="javascript:void(0)" onmousemove="RAT_mouseMove(event);" onmousedown="RAT_startTrackingStars('478c37ede1553ccd', '1', rh_478c37ede1553ccd);return false;" onmouseover="RAT_hesitateStars('478c37ede1553ccd', '1', rh_478c37ede1553ccd);return false;" onmouseup="RAT_mouseUpInStar('cake-php','478c37ede1553ccd','1', rh_478c37ede1553ccd, '009b082ac8954f2d1e4929c204d7d2b9');return false;" ;="" onmouseout="RAT_unhesStars('478c37ede1553ccd', '1', rh_478c37ede1553ccd);return false;"><img name="s1_478c37ede1553ccd_img" id="s1_478c37ede1553ccd_img" src="google_groups_files/clear_star_blue_outline.gif" width="14" align="absmiddle" height="13"></a><a class="s2" id="s2_478c37ede1553ccd" name="s2_478c37ede1553ccd" href="javascript:void(0)" onmousemove="RAT_mouseMove(event);" onmousedown="RAT_startTrackingStars('478c37ede1553ccd', '2', rh_478c37ede1553ccd);return false;" onmouseover="RAT_hesitateStars('478c37ede1553ccd', '2', rh_478c37ede1553ccd);return false;" onmouseup="RAT_mouseUpInStar('cake-php','478c37ede1553ccd','2', rh_478c37ede1553ccd, '009b082ac8954f2d1e4929c204d7d2b9');return false;" ;="" onmouseout="RAT_unhesStars('478c37ede1553ccd', '2', rh_478c37ede1553ccd);return false;"><img name="s2_478c37ede1553ccd_img" id="s2_478c37ede1553ccd_img" src="google_groups_files/clear_star_blue_outline.gif" width="14" align="absmiddle" height="13"></a><a class="s3" id="s3_478c37ede1553ccd" name="s3_478c37ede1553ccd" href="javascript:void(0)" onmousemove="RAT_mouseMove(event);" onmousedown="RAT_startTrackingStars('478c37ede1553ccd', '3', rh_478c37ede1553ccd);return false;" onmouseover="RAT_hesitateStars('478c37ede1553ccd', '3', rh_478c37ede1553ccd);return false;" onmouseup="RAT_mouseUpInStar('cake-php','478c37ede1553ccd','3', rh_478c37ede1553ccd, '009b082ac8954f2d1e4929c204d7d2b9');return false;" ;="" onmouseout="RAT_unhesStars('478c37ede1553ccd', '3', rh_478c37ede1553ccd);return false;"><img name="s3_478c37ede1553ccd_img" id="s3_478c37ede1553ccd_img" src="google_groups_files/clear_star_blue_outline.gif" width="14" align="absmiddle" height="13"></a><a class="s4" id="s4_478c37ede1553ccd" name="s4_478c37ede1553ccd" href="javascript:void(0)" onmousemove="RAT_mouseMove(event);" onmousedown="RAT_startTrackingStars('478c37ede1553ccd', '4', rh_478c37ede1553ccd);return false;" onmouseover="RAT_hesitateStars('478c37ede1553ccd', '4', rh_478c37ede1553ccd);return false;" onmouseup="RAT_mouseUpInStar('cake-php','478c37ede1553ccd','4', rh_478c37ede1553ccd, '009b082ac8954f2d1e4929c204d7d2b9');return false;" ;="" onmouseout="RAT_unhesStars('478c37ede1553ccd', '4', rh_478c37ede1553ccd);return false;"><img name="s4_478c37ede1553ccd_img" id="s4_478c37ede1553ccd_img" src="google_groups_files/clear_star_blue_outline.gif" width="14" align="absmiddle" height="13"></a><a class="s5" id="s5_478c37ede1553ccd" name="s5_478c37ede1553ccd" href="javascript:void(0)" onmousemove="RAT_mouseMove(event);" onmousedown="RAT_startTrackingStars('478c37ede1553ccd', '5', rh_478c37ede1553ccd);return false;" onmouseover="RAT_hesitateStars('478c37ede1553ccd', '5', rh_478c37ede1553ccd);return false;" onmouseup="RAT_mouseUpInStar('cake-php','478c37ede1553ccd','5', rh_478c37ede1553ccd, '009b082ac8954f2d1e4929c204d7d2b9');return false;" ;="" onmouseout="RAT_unhesStars('478c37ede1553ccd', '5', rh_478c37ede1553ccd);return false;"><img name="s5_478c37ede1553ccd_img" id="s5_478c37ede1553ccd_img" src="google_groups_files/clear_star_blue_outline.gif" width="14" align="absmiddle" height="13"></a></nobr>
  <nobr><span class="fontsize1 hide" style="" id="ratings_text_478c37ede1553ccd">Text for clearing space</span></nobr>
  </div>
  </div>
  </div>
  </div>
  <span id="dl_msg_cb2"></span>
  <div id="ftr_sep" class="" style="">
  <table cellpadding="0" cellspacing="0" height="8"><tbody>
  <tr>
  <td class="cbl" id="lc"></td>
  <td class="cbot"></td>
  <td class="cbr"></td>
  </tr>
  </tbody></table>
  </div>
  <div class="mrgb8" id="msg_sep"></div>
  <div class="mrgb2 hide" id="pok" style="margin-top: -5px; position: relative;">
  <table align="center"><tbody><tr><td>
  <div><table width="100%" cellpadding="0" cellspacing="0"><tbody><tr><td><div style="background: transparent url(/groups/roundedcorners?c=fad163&amp;bc&amp;w=2&amp;h=2&amp;a=af) repeat scroll 0px 0px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 2px; height: 2px;"></div></td><td width="100%" bgcolor="#fad163" height="2"><img alt="" width="1" height="1"></td><td><div style="background: transparent url(/groups/roundedcorners?c=fad163&amp;bc&amp;w=2&amp;h=2&amp;a=af) repeat scroll -2px 0px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 2px; height: 2px;"></div></td></tr></tbody></table></div>
  <div class="pokh" style="background-color: rgb(250, 209, 99);">
  <div id="pok_cnt"></div>
  </div>
  <div><table width="100%" cellpadding="0" cellspacing="0"><tbody><tr><td><div style="background: transparent url(/groups/roundedcorners?c=fad163&amp;bc&amp;w=2&amp;h=2&amp;a=af) repeat scroll 0px 2px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 2px; height: 2px;"></div></td><td width="100%" bgcolor="#fad163" height="2"><img alt="" width="1" height="1"></td><td><div style="background: transparent url(/groups/roundedcorners?c=fad163&amp;bc&amp;w=2&amp;h=2&amp;a=af) repeat scroll -2px 2px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 2px; height: 2px;"></div></td></tr></tbody></table></div>
  </td></tr></tbody></table>
  </div>
  </div>
  <div class="hide" id="peml">You must <a target="_top" href="https://www.google.com/groups/signin?cd=US&amp;hl=en&amp;ssip=g3&amp;_done=http%3A%2F%2Fgroups.google.com%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3">Sign in</a> before you can post messages.</div>
  <div class="hide" id="pemj">To post a message you must first <a href="http://groups.google.com/group/cake-php/subscribe" target="_top">join this group</a>.</div>
  <div class="hide" id="peus">Please update your nickname on the <a target="_top" href="http://groups.google.com/group/cake-php/subscribe?reason=post_renew&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">subscription settings</a> page before posting.</div>
  <div class="hide" id="pep">You do not have the permission required to post.</div>
  <script language="javascript1.3"><!--

    
      
      
      
    

    var msg = G2_cardManager._getMessage("478c37ede1553ccd");
    msg._init("478c37ede1553ccd", "04dae93e-8ca4-4670-ab57-6a27738dbac6@s39g2000prd.googlegroups.com", true,
              "over", true, false,
              "", 1);

    
      msg._setPrev(G2_cardManager._getCard("msg_55eeef327818ca55"),
                   1);
    

    msg._addPreLoadHook(function() {
      

      
    });

    

    
  //--></script>
</td></tr></tbody></table>
  </div>
  <a name="8b1cdc0b5eb18a6e" id="anchor_8b1cdc0b5eb18a6e"></a>
  <div style="margin-left: -3px; margin-right: -1px;">
  <table border="0" cellpadding="0" cellspacing="0"><tbody><tr>
  <td><img src="google_groups_files/dot_clear.gif" width="1" height="1"></td>
  <td width="100%">
  <div class="msg wdth100" id="msg_8b1cdc0b5eb18a6e" onmouseover="if (G2_cardManager) {G2_cardManager._getMessage('8b1cdc0b5eb18a6e')._load();}" style="margin: 0pt -1px;">
  <input id="hdn_reply_to_subj" value="using jquery and json on cakephp" type="hidden">
  <input id="hdn_from" value="Loci-master &lt;loci.master@gmail.com&gt;" type="hidden">
  <input id="hdn_date" value="Apr 17, 2:41&nbsp;am" type="hidden">
  <input id="hdn_author" value="krusty999 &lt;henryenla...@gmail.com&gt;" type="hidden">
  <input id="hdn_group_name" value="CakePHP" type="hidden">
  <div id="hdr">
  <table id="top" class="h msg_meta" cellpadding="0" cellspacing="0"><tbody>
  <tr id="sep">
  <td rowspan="2" id="l" class="ctl"></td>
  <td colspan="4" id="m" class="ctop" height="4"></td>
  <td rowspan="2" id="r" class="ctr"></td>
  </tr>
  <tr>
  <td><span class="fontsize2 author">
  <span style="color: rgb(200, 137, 0);">krusty999</span>
  &nbsp;
  </span></td>
  <td width="100%">
  <table class="rc" cellpadding="0" cellspacing="0"><tbody>
  <tr><td><span class="fontsize0" id="prof"><a target="_top" href="http://groups.google.com/groups/profile?enc_user=B8BYABYAAACKBeau_odUR_Bp-H-dq9Nfo4cocwWvDVg2RHsu8f1bCg">View profile</a></span><div id="body_sum" style="color: rgb(102, 102, 102);" class="fontsize2 hide"></div></td></tr>
  </tbody></table>
  </td>
  <td align="right" nowrap="nowrap">
  <span style="background-color: white;">
  <span class="fontsize0">&nbsp;<span class="noscripthide scripthide script12inline lk" id="oh_l">More options</span></span>
  <span class="fontsize2">
  Apr 17, 2:41&nbsp;am
  </span>
  </span>
  </td>
  </tr>
  </tbody></table>
  <div class="scripthide cb" id="oh">
  <div class="exh">
  <div class="fontsize2">
  <div style="padding-left: 20px; text-indent: -16px;">From: <b>krusty999 &lt;henryenla<a target="_parent" href="http://groups.google.com/groups/unlock?msg=8b1cdc0b5eb18a6e&amp;_done=/group/cake-php/browse_thread/thread/a7480daeb8922d0d/2f6ff50ac0d367d3">...</a>@gmail.com&gt;</b></div>
  <div style="padding-left: 20px; text-indent: -16px;">Date: <b>Wed, 16 Apr 2008 12:41:24 -0700 (PDT)</b></div>
  <div style="padding-left: 20px; text-indent: -16px;">Local: <b>Thurs, Apr 17 2008 2:41&nbsp;am
</b></div>
  <div style="padding-left: 20px; text-indent: -16px;">Subject: <b>Re: using jquery and json on cakephp</b></div>
  </div>
  <div class="fontsize1 padall4">
  <a target="_top" id="r" class="l" href="http://groups.google.com/group/cake-php/post?inreplyto=8b1cdc0b5eb18a6e&amp;reply_to=group&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">Reply</a>
  |
  <a target="_top" id="ra" class="l" href="http://groups.google.com/group/cake-php/post?inreplyto=8b1cdc0b5eb18a6e&amp;reply_to=author&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">Reply to author</a>
  |
  <a target="_top" id="f" class="l" href="http://groups.google.com/group/cake-php/post?inreplyto=8b1cdc0b5eb18a6e&amp;forward=1&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">Forward</a>
  | <a target="_blank" class="l" href="http://groups.google.com/group/cake-php/msg/8b1cdc0b5eb18a6e?dmode=print">Print</a>
  | <a target="_top" class="l" href="http://groups.google.com/group/cake-php/msg/8b1cdc0b5eb18a6e">Individual message</a>
  | <a target="_blank" class="l" href="http://groups.google.com/group/cake-php/msg/8b1cdc0b5eb18a6e?dmode=source">Show original</a>
  | <a target="_blank" class="l" href="http://groups.google.com/groups/abuse?group=cake-php&amp;type=message&amp;url=http%3A%2F%2Fgroups.google.com%2Fgroup%2Fcake-php%2Fmsg%2F8b1cdc0b5eb18a6e&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">Report this message</a>
  | <a target="_top" href="http://groups.google.com/groups/search?enc_author=B8BYABYAAACKBeau_odUR_Bp-H-dq9Nfo4cocwWvDVg2RHsu8f1bCg&amp;scoring=d">Find messages by this author</a>
  </div>
  </div>
  </div>
  </div>
  <div id="body" class="mb cb fontsize2">
  <div id="inbdy">
  <a name="msg_8b1cdc0b5eb18a6e"></a>You must set some variable for te output.
<br> <p>Controller:
<br> $this-&gt;set('myVariable', $this-&gt;User-&gt;findAll());
<br> Configure::write('debug',0); //When output Json.
<br> </p><p>Then in your view app/views/users/data.ctp you can leave empty.
<br> </p><p>But in your view app/view/users/json/data.ctp you put:
<br> &lt;?php
<br> echo $javascript-&gt;object($myVariable); &nbsp; //The same of the controller
<br> ?&gt;
<br> </p><p>And then when you enter <a target="_blank" rel="nofollow" href="http://localhost/app/users/data">http://localhost/app/users/data</a> dysplay
<br> nothing, but in
<br> </p><p><a target="_blank" rel="nofollow" href="http://localhost/app/users/data.json">http://localhost/app/users/data.json</a> display the content of
<br> $myVariable in json format.
<br> </p><p>See ya.
<br>
  </p></div>
  <br style="font-size: 8px;" clear="all">
  </div>
  <div id="cb" class="">
  <div class="cg cb2">
  <div class="cg cb2">
  <div class="cg cb2"><span class="fontsize1">&nbsp;
  <span class="lc b" id="r">&nbsp;&nbsp;<a target="_top" href="http://groups.google.com/group/cake-php/post?inreplyto=8b1cdc0b5eb18a6e&amp;reply_to=group&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">Reply</a>&nbsp;&nbsp;</span><span class="lc" id="ra">&nbsp;&nbsp;<a target="_top" href="http://groups.google.com/group/cake-php/post?inreplyto=8b1cdc0b5eb18a6e&amp;reply_to=author&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">Reply to author</a>&nbsp;&nbsp;</span><span class="lc" id="f">&nbsp;&nbsp;<a target="_top" href="http://groups.google.com/group/cake-php/post?inreplyto=8b1cdc0b5eb18a6e&amp;forward=1&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">Forward</a>&nbsp;&nbsp;</span></span>
  <span class="fontsize1">&nbsp;&nbsp;&nbsp;&nbsp;Rate this post:</span>
  <script language="javascript1.2"><!--
        var rh_8b1cdc0b5eb18a6e = new RAT_RatingHolder('8b1cdc0b5eb18a6e', '0', '');
      //--></script>
  <nobr>
  <a class="s1" id="s1_8b1cdc0b5eb18a6e" name="s1_8b1cdc0b5eb18a6e" href="javascript:void(0)" onmousemove="RAT_mouseMove(event);" onmousedown="RAT_startTrackingStars('8b1cdc0b5eb18a6e', '1', rh_8b1cdc0b5eb18a6e);return false;" onmouseover="RAT_hesitateStars('8b1cdc0b5eb18a6e', '1', rh_8b1cdc0b5eb18a6e);return false;" onmouseup="RAT_mouseUpInStar('cake-php','8b1cdc0b5eb18a6e','1', rh_8b1cdc0b5eb18a6e, '009b082ac8954f2d1e4929c204d7d2b9');return false;" ;="" onmouseout="RAT_unhesStars('8b1cdc0b5eb18a6e', '1', rh_8b1cdc0b5eb18a6e);return false;"><img name="s1_8b1cdc0b5eb18a6e_img" id="s1_8b1cdc0b5eb18a6e_img" src="google_groups_files/clear_star_blue_outline.gif" width="14" align="absmiddle" height="13"></a><a class="s2" id="s2_8b1cdc0b5eb18a6e" name="s2_8b1cdc0b5eb18a6e" href="javascript:void(0)" onmousemove="RAT_mouseMove(event);" onmousedown="RAT_startTrackingStars('8b1cdc0b5eb18a6e', '2', rh_8b1cdc0b5eb18a6e);return false;" onmouseover="RAT_hesitateStars('8b1cdc0b5eb18a6e', '2', rh_8b1cdc0b5eb18a6e);return false;" onmouseup="RAT_mouseUpInStar('cake-php','8b1cdc0b5eb18a6e','2', rh_8b1cdc0b5eb18a6e, '009b082ac8954f2d1e4929c204d7d2b9');return false;" ;="" onmouseout="RAT_unhesStars('8b1cdc0b5eb18a6e', '2', rh_8b1cdc0b5eb18a6e);return false;"><img name="s2_8b1cdc0b5eb18a6e_img" id="s2_8b1cdc0b5eb18a6e_img" src="google_groups_files/clear_star_blue_outline.gif" width="14" align="absmiddle" height="13"></a><a class="s3" id="s3_8b1cdc0b5eb18a6e" name="s3_8b1cdc0b5eb18a6e" href="javascript:void(0)" onmousemove="RAT_mouseMove(event);" onmousedown="RAT_startTrackingStars('8b1cdc0b5eb18a6e', '3', rh_8b1cdc0b5eb18a6e);return false;" onmouseover="RAT_hesitateStars('8b1cdc0b5eb18a6e', '3', rh_8b1cdc0b5eb18a6e);return false;" onmouseup="RAT_mouseUpInStar('cake-php','8b1cdc0b5eb18a6e','3', rh_8b1cdc0b5eb18a6e, '009b082ac8954f2d1e4929c204d7d2b9');return false;" ;="" onmouseout="RAT_unhesStars('8b1cdc0b5eb18a6e', '3', rh_8b1cdc0b5eb18a6e);return false;"><img name="s3_8b1cdc0b5eb18a6e_img" id="s3_8b1cdc0b5eb18a6e_img" src="google_groups_files/clear_star_blue_outline.gif" width="14" align="absmiddle" height="13"></a><a class="s4" id="s4_8b1cdc0b5eb18a6e" name="s4_8b1cdc0b5eb18a6e" href="javascript:void(0)" onmousemove="RAT_mouseMove(event);" onmousedown="RAT_startTrackingStars('8b1cdc0b5eb18a6e', '4', rh_8b1cdc0b5eb18a6e);return false;" onmouseover="RAT_hesitateStars('8b1cdc0b5eb18a6e', '4', rh_8b1cdc0b5eb18a6e);return false;" onmouseup="RAT_mouseUpInStar('cake-php','8b1cdc0b5eb18a6e','4', rh_8b1cdc0b5eb18a6e, '009b082ac8954f2d1e4929c204d7d2b9');return false;" ;="" onmouseout="RAT_unhesStars('8b1cdc0b5eb18a6e', '4', rh_8b1cdc0b5eb18a6e);return false;"><img name="s4_8b1cdc0b5eb18a6e_img" id="s4_8b1cdc0b5eb18a6e_img" src="google_groups_files/clear_star_blue_outline.gif" width="14" align="absmiddle" height="13"></a><a class="s5" id="s5_8b1cdc0b5eb18a6e" name="s5_8b1cdc0b5eb18a6e" href="javascript:void(0)" onmousemove="RAT_mouseMove(event);" onmousedown="RAT_startTrackingStars('8b1cdc0b5eb18a6e', '5', rh_8b1cdc0b5eb18a6e);return false;" onmouseover="RAT_hesitateStars('8b1cdc0b5eb18a6e', '5', rh_8b1cdc0b5eb18a6e);return false;" onmouseup="RAT_mouseUpInStar('cake-php','8b1cdc0b5eb18a6e','5', rh_8b1cdc0b5eb18a6e, '009b082ac8954f2d1e4929c204d7d2b9');return false;" ;="" onmouseout="RAT_unhesStars('8b1cdc0b5eb18a6e', '5', rh_8b1cdc0b5eb18a6e);return false;"><img name="s5_8b1cdc0b5eb18a6e_img" id="s5_8b1cdc0b5eb18a6e_img" src="google_groups_files/clear_star_blue_outline.gif" width="14" align="absmiddle" height="13"></a></nobr>
  <nobr><span class="fontsize1 hide" style="" id="ratings_text_8b1cdc0b5eb18a6e">Text for clearing space</span></nobr>
  </div>
  </div>
  </div>
  </div>
  <span id="dl_msg_cb2"></span>
  <div id="ftr_sep" class="" style="">
  <table cellpadding="0" cellspacing="0" height="8"><tbody>
  <tr>
  <td class="cbl" id="lc"></td>
  <td class="cbot"></td>
  <td class="cbr"></td>
  </tr>
  </tbody></table>
  </div>
  <div class="mrgb8" id="msg_sep"></div>
  <div class="mrgb2 hide" id="pok" style="margin-top: -5px; position: relative;">
  <table align="center"><tbody><tr><td>
  <div><table width="100%" cellpadding="0" cellspacing="0"><tbody><tr><td><div style="background: transparent url(/groups/roundedcorners?c=fad163&amp;bc&amp;w=2&amp;h=2&amp;a=af) repeat scroll 0px 0px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 2px; height: 2px;"></div></td><td width="100%" bgcolor="#fad163" height="2"><img alt="" width="1" height="1"></td><td><div style="background: transparent url(/groups/roundedcorners?c=fad163&amp;bc&amp;w=2&amp;h=2&amp;a=af) repeat scroll -2px 0px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 2px; height: 2px;"></div></td></tr></tbody></table></div>
  <div class="pokh" style="background-color: rgb(250, 209, 99);">
  <div id="pok_cnt"></div>
  </div>
  <div><table width="100%" cellpadding="0" cellspacing="0"><tbody><tr><td><div style="background: transparent url(/groups/roundedcorners?c=fad163&amp;bc&amp;w=2&amp;h=2&amp;a=af) repeat scroll 0px 2px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 2px; height: 2px;"></div></td><td width="100%" bgcolor="#fad163" height="2"><img alt="" width="1" height="1"></td><td><div style="background: transparent url(/groups/roundedcorners?c=fad163&amp;bc&amp;w=2&amp;h=2&amp;a=af) repeat scroll -2px 2px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 2px; height: 2px;"></div></td></tr></tbody></table></div>
  </td></tr></tbody></table>
  </div>
  </div>
  <div class="hide" id="peml">You must <a target="_top" href="https://www.google.com/groups/signin?cd=US&amp;hl=en&amp;ssip=g3&amp;_done=http%3A%2F%2Fgroups.google.com%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3">Sign in</a> before you can post messages.</div>
  <div class="hide" id="pemj">To post a message you must first <a href="http://groups.google.com/group/cake-php/subscribe" target="_top">join this group</a>.</div>
  <div class="hide" id="peus">Please update your nickname on the <a target="_top" href="http://groups.google.com/group/cake-php/subscribe?reason=post_renew&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">subscription settings</a> page before posting.</div>
  <div class="hide" id="pep">You do not have the permission required to post.</div>
  <script language="javascript1.3"><!--

    
      
      
      
    

    var msg = G2_cardManager._getMessage("8b1cdc0b5eb18a6e");
    msg._init("8b1cdc0b5eb18a6e", "a6336a50-ce2e-4c6d-bdd2-ce9000814256@t54g2000hsg.googlegroups.com", true,
              "over", true, false,
              "", 1);

    
      msg._setPrev(G2_cardManager._getCard("msg_478c37ede1553ccd"),
                   1);
    

    msg._addPreLoadHook(function() {
      

      
    });

    

    
  //--></script>
</td></tr></tbody></table>
  </div>
  <a name="b080f637a3116c2a" id="anchor_b080f637a3116c2a"></a>
  <div style="margin-left: -3px; margin-right: -1px;">
  <table border="0" cellpadding="0" cellspacing="0"><tbody><tr>
  <td><img src="google_groups_files/dot_clear.gif" width="1" height="1"></td>
  <td width="100%">
  <div class="msg wdth100" id="msg_b080f637a3116c2a" onmouseover="if (G2_cardManager) {G2_cardManager._getMessage('b080f637a3116c2a')._load();}" style="margin: 0pt -1px;">
  <input id="hdn_reply_to_subj" value="using jquery and json on cakephp" type="hidden">
  <input id="hdn_from" value="Loci-master &lt;loci.master@gmail.com&gt;" type="hidden">
  <input id="hdn_date" value="Apr 17, 5:48&nbsp;am" type="hidden">
  <input id="hdn_author" value="&quot;Renan Gonçalves&quot; &lt;renan.sad...@gmail.com&gt;" type="hidden">
  <input id="hdn_group_name" value="CakePHP" type="hidden">
  <div id="hdr">
  <table id="top" class="h msg_meta" cellpadding="0" cellspacing="0"><tbody>
  <tr id="sep">
  <td rowspan="2" id="l" class="ctl"></td>
  <td colspan="4" id="m" class="ctop" height="4"></td>
  <td rowspan="2" id="r" class="ctr"></td>
  </tr>
  <tr>
  <td><span class="fontsize2 author">
  <span style="color: rgb(204, 0, 96);">Renan Gonçalves</span>
  &nbsp;
  </span></td>
  <td width="100%">
  <table class="rc" cellpadding="0" cellspacing="0"><tbody>
  <tr><td><span class="fontsize0" id="prof"><a target="_top" href="http://groups.google.com/groups/profile?enc_user=2CkY_xYAAACh0DUG43vdr8EKrlgWH_S5o4cocwWvDVg2RHsu8f1bCg">View profile</a></span><div id="body_sum" style="color: rgb(102, 102, 102);" class="fontsize2 hide"></div></td></tr>
  </tbody></table>
  </td>
  <td align="right" nowrap="nowrap">
  <span style="background-color: white;">
  <span class="fontsize0">&nbsp;<span class="noscripthide scripthide script12inline lk" id="oh_l">More options</span></span>
  <span class="fontsize2">
  Apr 17, 5:48&nbsp;am
  </span>
  </span>
  </td>
  </tr>
  </tbody></table>
  <div class="scripthide cb" id="oh">
  <div class="exh">
  <div class="fontsize2">
  <div style="padding-left: 20px; text-indent: -16px;">From: <b>"Renan Gonçalves" &lt;renan.sad<a target="_parent" href="http://groups.google.com/groups/unlock?msg=b080f637a3116c2a&amp;_done=/group/cake-php/browse_thread/thread/a7480daeb8922d0d/2f6ff50ac0d367d3">...</a>@gmail.com&gt;</b></div>
  <div style="padding-left: 20px; text-indent: -16px;">Date: <b>Wed, 16 Apr 2008 19:48:15 -0300</b></div>
  <div style="padding-left: 20px; text-indent: -16px;">Local: <b>Thurs, Apr 17 2008 5:48&nbsp;am
</b></div>
  <div style="padding-left: 20px; text-indent: -16px;">Subject: <b>Re: using jquery and json on cakephp</b></div>
  </div>
  <div class="fontsize1 padall4">
  <a target="_top" id="r" class="l" href="http://groups.google.com/group/cake-php/post?inreplyto=b080f637a3116c2a&amp;reply_to=group&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">Reply</a>
  |
  <a target="_top" id="ra" class="l" href="http://groups.google.com/group/cake-php/post?inreplyto=b080f637a3116c2a&amp;reply_to=author&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">Reply to author</a>
  |
  <a target="_top" id="f" class="l" href="http://groups.google.com/group/cake-php/post?inreplyto=b080f637a3116c2a&amp;forward=1&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">Forward</a>
  | <a target="_blank" class="l" href="http://groups.google.com/group/cake-php/msg/b080f637a3116c2a?dmode=print">Print</a>
  | <a target="_top" class="l" href="http://groups.google.com/group/cake-php/msg/b080f637a3116c2a">Individual message</a>
  | <a target="_blank" class="l" href="http://groups.google.com/group/cake-php/msg/b080f637a3116c2a?dmode=source">Show original</a>
  | <a target="_blank" class="l" href="http://groups.google.com/groups/abuse?group=cake-php&amp;type=message&amp;url=http%3A%2F%2Fgroups.google.com%2Fgroup%2Fcake-php%2Fmsg%2Fb080f637a3116c2a&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">Report this message</a>
  | <a target="_top" href="http://groups.google.com/groups/search?enc_author=2CkY_xYAAACh0DUG43vdr8EKrlgWH_S5o4cocwWvDVg2RHsu8f1bCg&amp;scoring=d">Find messages by this author</a>
  </div>
  </div>
  </div>
  </div>
  <div id="body" class="mb cb fontsize2">
  <div id="inbdy">
  <p>
  <a name="msg_b080f637a3116c2a"></a></p><div id="qhide_460390" style="display: block;" class="qt"><p>&gt; *@krusty999:* <br> <br></p></div>Configure::write('debug',0); //When output Json. <br> <p>Put this line at json's layout. <br> </p><p>[]'s <br> </p><p></p><p><a class="qt" href="http://groups.google.com/group/cake-php/browse_thread/thread/a7480daeb8922d0d/2f6ff50ac0d367d3?hide_quotes=no#msg_b080f637a3116c2a" onclick="return tog_quote(460391); "><div id="qheader_shown_460391" class="hqt" style="display: none;">- Hide quoted text -</div><div id="qheader_hidden_460391" class="sqt" style="display: block;">- Show quoted text -</div></a></p><div id="qhide_460391" style="display: none;" class="qt">On Wed, Apr 16, 2008 at 4:41 PM, krusty999 &lt;henryenla<a target="_parent" href="http://groups.google.com/groups/unlock?msg=b080f637a3116c2a&amp;_done=/group/cake-php/browse_thread/thread/a7480daeb8922d0d/2f6ff50ac0d367d3">...</a>@gmail.com&gt; wrote: <br> <p>&gt; You must set some variable for te output. <br> </p><p>&gt; Controller: <br> &gt; $this-&gt;set('myVariable', $this-&gt;User-&gt;findAll()); <br> &gt; Configure::write('debug',0); //When output Json. <br> </p><p>&gt; Then in your view app/views/users/data.ctp you can leave empty. <br> </p><p>&gt; But in your view app/view/users/json/data.ctp you put: <br> &gt; &lt;?php <br> &gt; echo $javascript-&gt;object($myVariable); &nbsp; //The same of the controller <br> &gt; ?&gt; <br> </p><p>&gt; And then when you enter <a target="_blank" rel="nofollow" href="http://localhost/app/users/data">http://localhost/app/users/data</a> dysplay <br> &gt; nothing, but in <br> </p><p>&gt; <a target="_blank" rel="nofollow" href="http://localhost/app/users/data.json">http://localhost/app/users/data.json</a> display the content of <br> &gt; $myVariable in json format. <br> </p><p>&gt; See ya. <br> <br></p></div>-- <br> Renan Gonçalves - Software Engineer <br> Cell Phone: +55 11 8633 6018 <br> MSN: renan.sad<a target="_parent" href="http://groups.google.com/groups/unlock?msg=b080f637a3116c2a&amp;_done=/group/cake-php/browse_thread/thread/a7480daeb8922d0d/2f6ff50ac0d367d3">...</a>@gmail.com <br> São Paulo - SP/Brazil <br>
  </div>
  <br style="font-size: 8px;" clear="all">
  </div>
  <div id="cb" class="">
  <div class="cg cb2">
  <div class="cg cb2">
  <div class="cg cb2"><span class="fontsize1">&nbsp;
  <span class="lc b" id="r">&nbsp;&nbsp;<a target="_top" href="http://groups.google.com/group/cake-php/post?inreplyto=b080f637a3116c2a&amp;reply_to=group&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">Reply</a>&nbsp;&nbsp;</span><span class="lc" id="ra">&nbsp;&nbsp;<a target="_top" href="http://groups.google.com/group/cake-php/post?inreplyto=b080f637a3116c2a&amp;reply_to=author&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">Reply to author</a>&nbsp;&nbsp;</span><span class="lc" id="f">&nbsp;&nbsp;<a target="_top" href="http://groups.google.com/group/cake-php/post?inreplyto=b080f637a3116c2a&amp;forward=1&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">Forward</a>&nbsp;&nbsp;</span></span>
  <span class="fontsize1">&nbsp;&nbsp;&nbsp;&nbsp;Rate this post:</span>
  <script language="javascript1.2"><!--
        var rh_b080f637a3116c2a = new RAT_RatingHolder('b080f637a3116c2a', '0', '');
      //--></script>
  <nobr>
  <a class="s1" id="s1_b080f637a3116c2a" name="s1_b080f637a3116c2a" href="javascript:void(0)" onmousemove="RAT_mouseMove(event);" onmousedown="RAT_startTrackingStars('b080f637a3116c2a', '1', rh_b080f637a3116c2a);return false;" onmouseover="RAT_hesitateStars('b080f637a3116c2a', '1', rh_b080f637a3116c2a);return false;" onmouseup="RAT_mouseUpInStar('cake-php','b080f637a3116c2a','1', rh_b080f637a3116c2a, '009b082ac8954f2d1e4929c204d7d2b9');return false;" ;="" onmouseout="RAT_unhesStars('b080f637a3116c2a', '1', rh_b080f637a3116c2a);return false;"><img name="s1_b080f637a3116c2a_img" id="s1_b080f637a3116c2a_img" src="google_groups_files/clear_star_blue_outline.gif" width="14" align="absmiddle" height="13"></a><a class="s2" id="s2_b080f637a3116c2a" name="s2_b080f637a3116c2a" href="javascript:void(0)" onmousemove="RAT_mouseMove(event);" onmousedown="RAT_startTrackingStars('b080f637a3116c2a', '2', rh_b080f637a3116c2a);return false;" onmouseover="RAT_hesitateStars('b080f637a3116c2a', '2', rh_b080f637a3116c2a);return false;" onmouseup="RAT_mouseUpInStar('cake-php','b080f637a3116c2a','2', rh_b080f637a3116c2a, '009b082ac8954f2d1e4929c204d7d2b9');return false;" ;="" onmouseout="RAT_unhesStars('b080f637a3116c2a', '2', rh_b080f637a3116c2a);return false;"><img name="s2_b080f637a3116c2a_img" id="s2_b080f637a3116c2a_img" src="google_groups_files/clear_star_blue_outline.gif" width="14" align="absmiddle" height="13"></a><a class="s3" id="s3_b080f637a3116c2a" name="s3_b080f637a3116c2a" href="javascript:void(0)" onmousemove="RAT_mouseMove(event);" onmousedown="RAT_startTrackingStars('b080f637a3116c2a', '3', rh_b080f637a3116c2a);return false;" onmouseover="RAT_hesitateStars('b080f637a3116c2a', '3', rh_b080f637a3116c2a);return false;" onmouseup="RAT_mouseUpInStar('cake-php','b080f637a3116c2a','3', rh_b080f637a3116c2a, '009b082ac8954f2d1e4929c204d7d2b9');return false;" ;="" onmouseout="RAT_unhesStars('b080f637a3116c2a', '3', rh_b080f637a3116c2a);return false;"><img name="s3_b080f637a3116c2a_img" id="s3_b080f637a3116c2a_img" src="google_groups_files/clear_star_blue_outline.gif" width="14" align="absmiddle" height="13"></a><a class="s4" id="s4_b080f637a3116c2a" name="s4_b080f637a3116c2a" href="javascript:void(0)" onmousemove="RAT_mouseMove(event);" onmousedown="RAT_startTrackingStars('b080f637a3116c2a', '4', rh_b080f637a3116c2a);return false;" onmouseover="RAT_hesitateStars('b080f637a3116c2a', '4', rh_b080f637a3116c2a);return false;" onmouseup="RAT_mouseUpInStar('cake-php','b080f637a3116c2a','4', rh_b080f637a3116c2a, '009b082ac8954f2d1e4929c204d7d2b9');return false;" ;="" onmouseout="RAT_unhesStars('b080f637a3116c2a', '4', rh_b080f637a3116c2a);return false;"><img name="s4_b080f637a3116c2a_img" id="s4_b080f637a3116c2a_img" src="google_groups_files/clear_star_blue_outline.gif" width="14" align="absmiddle" height="13"></a><a class="s5" id="s5_b080f637a3116c2a" name="s5_b080f637a3116c2a" href="javascript:void(0)" onmousemove="RAT_mouseMove(event);" onmousedown="RAT_startTrackingStars('b080f637a3116c2a', '5', rh_b080f637a3116c2a);return false;" onmouseover="RAT_hesitateStars('b080f637a3116c2a', '5', rh_b080f637a3116c2a);return false;" onmouseup="RAT_mouseUpInStar('cake-php','b080f637a3116c2a','5', rh_b080f637a3116c2a, '009b082ac8954f2d1e4929c204d7d2b9');return false;" ;="" onmouseout="RAT_unhesStars('b080f637a3116c2a', '5', rh_b080f637a3116c2a);return false;"><img name="s5_b080f637a3116c2a_img" id="s5_b080f637a3116c2a_img" src="google_groups_files/clear_star_blue_outline.gif" width="14" align="absmiddle" height="13"></a></nobr>
  <nobr><span class="fontsize1 hide" style="" id="ratings_text_b080f637a3116c2a">Text for clearing space</span></nobr>
  </div>
  </div>
  </div>
  </div>
  <span id="dl_msg_cb2"></span>
  <div id="ftr_sep" class="" style="">
  <table cellpadding="0" cellspacing="0" height="8"><tbody>
  <tr>
  <td class="cbl" id="lc"></td>
  <td class="cbot"></td>
  <td class="cbr"></td>
  </tr>
  </tbody></table>
  </div>
  <div class="mrgb8" id="msg_sep"></div>
  <div class="mrgb2 hide" id="pok" style="margin-top: -5px; position: relative;">
  <table align="center"><tbody><tr><td>
  <div><table width="100%" cellpadding="0" cellspacing="0"><tbody><tr><td><div style="background: transparent url(/groups/roundedcorners?c=fad163&amp;bc&amp;w=2&amp;h=2&amp;a=af) repeat scroll 0px 0px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 2px; height: 2px;"></div></td><td width="100%" bgcolor="#fad163" height="2"><img alt="" width="1" height="1"></td><td><div style="background: transparent url(/groups/roundedcorners?c=fad163&amp;bc&amp;w=2&amp;h=2&amp;a=af) repeat scroll -2px 0px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 2px; height: 2px;"></div></td></tr></tbody></table></div>
  <div class="pokh" style="background-color: rgb(250, 209, 99);">
  <div id="pok_cnt"></div>
  </div>
  <div><table width="100%" cellpadding="0" cellspacing="0"><tbody><tr><td><div style="background: transparent url(/groups/roundedcorners?c=fad163&amp;bc&amp;w=2&amp;h=2&amp;a=af) repeat scroll 0px 2px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 2px; height: 2px;"></div></td><td width="100%" bgcolor="#fad163" height="2"><img alt="" width="1" height="1"></td><td><div style="background: transparent url(/groups/roundedcorners?c=fad163&amp;bc&amp;w=2&amp;h=2&amp;a=af) repeat scroll -2px 2px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 2px; height: 2px;"></div></td></tr></tbody></table></div>
  </td></tr></tbody></table>
  </div>
  </div>
  <div class="hide" id="peml">You must <a target="_top" href="https://www.google.com/groups/signin?cd=US&amp;hl=en&amp;ssip=g3&amp;_done=http%3A%2F%2Fgroups.google.com%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3">Sign in</a> before you can post messages.</div>
  <div class="hide" id="pemj">To post a message you must first <a href="http://groups.google.com/group/cake-php/subscribe" target="_top">join this group</a>.</div>
  <div class="hide" id="peus">Please update your nickname on the <a target="_top" href="http://groups.google.com/group/cake-php/subscribe?reason=post_renew&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">subscription settings</a> page before posting.</div>
  <div class="hide" id="pep">You do not have the permission required to post.</div>
  <script language="javascript1.3"><!--

    
      
      
      
    

    var msg = G2_cardManager._getMessage("b080f637a3116c2a");
    msg._init("b080f637a3116c2a", "1995d8910804161548y6954ec27kfe61a87c4708810e@mail.gmail.com", true,
              "over", true, false,
              "", 1);

    
      msg._setPrev(G2_cardManager._getCard("msg_8b1cdc0b5eb18a6e"),
                   1);
    

    msg._addPreLoadHook(function() {
      

      
    });

    

    
  //--></script>
</td></tr></tbody></table>
  </div>
  <a name="bb677da497223c22" id="anchor_bb677da497223c22"></a>
  <div style="margin-left: -3px; margin-right: -1px;">
  <table border="0" cellpadding="0" cellspacing="0"><tbody><tr>
  <td><img src="google_groups_files/dot_clear.gif" width="1" height="1"></td>
  <td width="100%">
  <div class="msg wdth100" id="msg_bb677da497223c22" onmouseover="if (G2_cardManager) {G2_cardManager._getMessage('bb677da497223c22')._load();}" style="margin: 0pt -1px;">
  <input id="hdn_reply_to_subj" value="using jquery and json on cakephp" type="hidden">
  <input id="hdn_from" value="Loci-master &lt;loci.master@gmail.com&gt;" type="hidden">
  <input id="hdn_date" value="Apr 17, 11:17&nbsp;am" type="hidden">
  <input id="hdn_author" value="Freshow &lt;dyh1...@gmail.com&gt;" type="hidden">
  <input id="hdn_group_name" value="CakePHP" type="hidden">
  <div id="hdr">
  <table id="top" class="h msg_meta" cellpadding="0" cellspacing="0"><tbody>
  <tr id="sep">
  <td rowspan="2" id="l" class="ctl"></td>
  <td colspan="4" id="m" class="ctop" height="4"></td>
  <td rowspan="2" id="r" class="ctr"></td>
  </tr>
  <tr>
  <td><span class="fontsize2 author">
  <span style="color: rgb(91, 16, 148);">Freshow</span>
  &nbsp;
  </span></td>
  <td width="100%">
  <table class="rc" cellpadding="0" cellspacing="0"><tbody>
  <tr><td><span class="fontsize0" id="prof"><a target="_top" href="http://groups.google.com/groups/profile?enc_user=gyVvCBEAAABT_q6Fnx0AXPqhd58IeJ-nkdEasx1kiYTQavV7mdW13Q">View profile</a></span><div id="body_sum" style="color: rgb(102, 102, 102);" class="fontsize2 hide"></div></td></tr>
  </tbody></table>
  </td>
  <td align="right" nowrap="nowrap">
  <span style="background-color: white;">
  <span class="fontsize0">&nbsp;<span class="noscripthide scripthide script12inline lk" id="oh_l">More options</span></span>
  <span class="fontsize2">
  Apr 17, 11:17&nbsp;am
  </span>
  </span>
  </td>
  </tr>
  </tbody></table>
  <div class="scripthide cb" id="oh">
  <div class="exh">
  <div class="fontsize2">
  <div style="padding-left: 20px; text-indent: -16px;">From: <b>Freshow &lt;dyh1<a target="_parent" href="http://groups.google.com/groups/unlock?msg=bb677da497223c22&amp;_done=/group/cake-php/browse_thread/thread/a7480daeb8922d0d/2f6ff50ac0d367d3">...</a>@gmail.com&gt;</b></div>
  <div style="padding-left: 20px; text-indent: -16px;">Date: <b>Wed, 16 Apr 2008 21:17:57 -0700 (PDT)</b></div>
  <div style="padding-left: 20px; text-indent: -16px;">Local: <b>Thurs, Apr 17 2008 11:17&nbsp;am
</b></div>
  <div style="padding-left: 20px; text-indent: -16px;">Subject: <b>Re: using jquery and json on cakephp</b></div>
  </div>
  <div class="fontsize1 padall4">
  <a target="_top" id="r" class="l" href="http://groups.google.com/group/cake-php/post?inreplyto=bb677da497223c22&amp;reply_to=group&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">Reply</a>
  |
  <a target="_top" id="ra" class="l" href="http://groups.google.com/group/cake-php/post?inreplyto=bb677da497223c22&amp;reply_to=author&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">Reply to author</a>
  |
  <a target="_top" id="f" class="l" href="http://groups.google.com/group/cake-php/post?inreplyto=bb677da497223c22&amp;forward=1&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">Forward</a>
  | <a target="_blank" class="l" href="http://groups.google.com/group/cake-php/msg/bb677da497223c22?dmode=print">Print</a>
  | <a target="_top" class="l" href="http://groups.google.com/group/cake-php/msg/bb677da497223c22">Individual message</a>
  | <a target="_blank" class="l" href="http://groups.google.com/group/cake-php/msg/bb677da497223c22?dmode=source">Show original</a>
  | <a target="_blank" class="l" href="http://groups.google.com/groups/abuse?group=cake-php&amp;type=message&amp;url=http%3A%2F%2Fgroups.google.com%2Fgroup%2Fcake-php%2Fmsg%2Fbb677da497223c22&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">Report this message</a>
  | <a target="_top" href="http://groups.google.com/groups/search?enc_author=gyVvCBEAAABT_q6Fnx0AXPqhd58IeJ-nkdEasx1kiYTQavV7mdW13Q&amp;scoring=d">Find messages by this author</a>
  </div>
  </div>
  </div>
  </div>
  <div id="body" class="mb cb fontsize2">
  <div id="inbdy">
  <a name="msg_bb677da497223c22"></a>I checked it again ,but the problem is always, I test it and find that
<br> when call ./post/add.json , the function in post/json/add.ctp &nbsp;not
<br> work for me, it means ./post/add.json not associate with &nbsp; ./post/json/
<br> add.ctp , right?
<br> <p>On 4月17日, 上午3时41分, krusty999 &lt;henryenla<a target="_parent" href="http://groups.google.com/groups/unlock?msg=bb677da497223c22&amp;_done=/group/cake-php/browse_thread/thread/a7480daeb8922d0d/2f6ff50ac0d367d3">...</a>@gmail.com&gt; wrote:
<br> </p><p><a class="qt" href="http://groups.google.com/group/cake-php/browse_thread/thread/a7480daeb8922d0d/2f6ff50ac0d367d3?hide_quotes=no#msg_bb677da497223c22" onclick="return tog_quote(460392); "><div id="qheader_shown_460392" class="hqt" style="display: none;">- Hide quoted text -</div><div id="qheader_hidden_460392" class="sqt" style="display: block;">- Show quoted text -</div></a></p><div id="qhide_460392" style="display: none;" class="qt">&gt; You must set some variable for te output.
<br> <p>&gt; Controller:
<br> &gt; $this-&gt;set('myVariable', $this-&gt;User-&gt;findAll());
<br> &gt; Configure::write('debug',0); //When output Json.
<br> </p><p>&gt; Then in your view app/views/users/data.ctp you can leave empty.
<br> </p><p>&gt; But in your view app/view/users/json/data.ctp you put:
<br> &gt; &lt;?php
<br> &gt; echo $javascript-&gt;object($myVariable); &nbsp; //The same of the controller
<br> &gt; ?&gt;
<br> </p><p>&gt; And then when you enter<a target="_blank" rel="nofollow" href="http://localhost/app/users/datadysplay">http://localhost/app/users/datadysplay</a>
<br> &gt; nothing, but in
<br> </p><p>&gt; <a target="_blank" rel="nofollow" href="http://localhost/app/users/data.jsondisplay">http://localhost/app/users/data.jsondisplay</a> the content of
<br> &gt; $myVariable in json format.
<br> </p><p>&gt; See ya. <br> <br></p></div>
  </div>
  <br style="font-size: 8px;" clear="all">
  </div>
  <div id="cb" class="">
  <div class="cg cb2">
  <div class="cg cb2">
  <div class="cg cb2"><span class="fontsize1">&nbsp;
  <span class="lc b" id="r">&nbsp;&nbsp;<a target="_top" href="http://groups.google.com/group/cake-php/post?inreplyto=bb677da497223c22&amp;reply_to=group&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">Reply</a>&nbsp;&nbsp;</span><span class="lc" id="ra">&nbsp;&nbsp;<a target="_top" href="http://groups.google.com/group/cake-php/post?inreplyto=bb677da497223c22&amp;reply_to=author&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">Reply to author</a>&nbsp;&nbsp;</span><span class="lc" id="f">&nbsp;&nbsp;<a target="_top" href="http://groups.google.com/group/cake-php/post?inreplyto=bb677da497223c22&amp;forward=1&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">Forward</a>&nbsp;&nbsp;</span></span>
  <span class="fontsize1">&nbsp;&nbsp;&nbsp;&nbsp;Rate this post:</span>
  <script language="javascript1.2"><!--
        var rh_bb677da497223c22 = new RAT_RatingHolder('bb677da497223c22', '0', '');
      //--></script>
  <nobr>
  <a class="s1" id="s1_bb677da497223c22" name="s1_bb677da497223c22" href="javascript:void(0)" onmousemove="RAT_mouseMove(event);" onmousedown="RAT_startTrackingStars('bb677da497223c22', '1', rh_bb677da497223c22);return false;" onmouseover="RAT_hesitateStars('bb677da497223c22', '1', rh_bb677da497223c22);return false;" onmouseup="RAT_mouseUpInStar('cake-php','bb677da497223c22','1', rh_bb677da497223c22, '009b082ac8954f2d1e4929c204d7d2b9');return false;" ;="" onmouseout="RAT_unhesStars('bb677da497223c22', '1', rh_bb677da497223c22);return false;"><img name="s1_bb677da497223c22_img" id="s1_bb677da497223c22_img" src="google_groups_files/clear_star_blue_outline.gif" width="14" align="absmiddle" height="13"></a><a class="s2" id="s2_bb677da497223c22" name="s2_bb677da497223c22" href="javascript:void(0)" onmousemove="RAT_mouseMove(event);" onmousedown="RAT_startTrackingStars('bb677da497223c22', '2', rh_bb677da497223c22);return false;" onmouseover="RAT_hesitateStars('bb677da497223c22', '2', rh_bb677da497223c22);return false;" onmouseup="RAT_mouseUpInStar('cake-php','bb677da497223c22','2', rh_bb677da497223c22, '009b082ac8954f2d1e4929c204d7d2b9');return false;" ;="" onmouseout="RAT_unhesStars('bb677da497223c22', '2', rh_bb677da497223c22);return false;"><img name="s2_bb677da497223c22_img" id="s2_bb677da497223c22_img" src="google_groups_files/clear_star_blue_outline.gif" width="14" align="absmiddle" height="13"></a><a class="s3" id="s3_bb677da497223c22" name="s3_bb677da497223c22" href="javascript:void(0)" onmousemove="RAT_mouseMove(event);" onmousedown="RAT_startTrackingStars('bb677da497223c22', '3', rh_bb677da497223c22);return false;" onmouseover="RAT_hesitateStars('bb677da497223c22', '3', rh_bb677da497223c22);return false;" onmouseup="RAT_mouseUpInStar('cake-php','bb677da497223c22','3', rh_bb677da497223c22, '009b082ac8954f2d1e4929c204d7d2b9');return false;" ;="" onmouseout="RAT_unhesStars('bb677da497223c22', '3', rh_bb677da497223c22);return false;"><img name="s3_bb677da497223c22_img" id="s3_bb677da497223c22_img" src="google_groups_files/clear_star_blue_outline.gif" width="14" align="absmiddle" height="13"></a><a class="s4" id="s4_bb677da497223c22" name="s4_bb677da497223c22" href="javascript:void(0)" onmousemove="RAT_mouseMove(event);" onmousedown="RAT_startTrackingStars('bb677da497223c22', '4', rh_bb677da497223c22);return false;" onmouseover="RAT_hesitateStars('bb677da497223c22', '4', rh_bb677da497223c22);return false;" onmouseup="RAT_mouseUpInStar('cake-php','bb677da497223c22','4', rh_bb677da497223c22, '009b082ac8954f2d1e4929c204d7d2b9');return false;" ;="" onmouseout="RAT_unhesStars('bb677da497223c22', '4', rh_bb677da497223c22);return false;"><img name="s4_bb677da497223c22_img" id="s4_bb677da497223c22_img" src="google_groups_files/clear_star_blue_outline.gif" width="14" align="absmiddle" height="13"></a><a class="s5" id="s5_bb677da497223c22" name="s5_bb677da497223c22" href="javascript:void(0)" onmousemove="RAT_mouseMove(event);" onmousedown="RAT_startTrackingStars('bb677da497223c22', '5', rh_bb677da497223c22);return false;" onmouseover="RAT_hesitateStars('bb677da497223c22', '5', rh_bb677da497223c22);return false;" onmouseup="RAT_mouseUpInStar('cake-php','bb677da497223c22','5', rh_bb677da497223c22, '009b082ac8954f2d1e4929c204d7d2b9');return false;" ;="" onmouseout="RAT_unhesStars('bb677da497223c22', '5', rh_bb677da497223c22);return false;"><img name="s5_bb677da497223c22_img" id="s5_bb677da497223c22_img" src="google_groups_files/clear_star_blue_outline.gif" width="14" align="absmiddle" height="13"></a></nobr>
  <nobr><span class="fontsize1 hide" style="" id="ratings_text_bb677da497223c22">Text for clearing space</span></nobr>
  </div>
  </div>
  </div>
  </div>
  <span id="dl_msg_cb2"></span>
  <div id="ftr_sep" class="" style="">
  <table cellpadding="0" cellspacing="0" height="8"><tbody>
  <tr>
  <td class="cbl" id="lc"></td>
  <td class="cbot"></td>
  <td class="cbr"></td>
  </tr>
  </tbody></table>
  </div>
  <div class="mrgb8" id="msg_sep"></div>
  <div class="mrgb2 hide" id="pok" style="margin-top: -5px; position: relative;">
  <table align="center"><tbody><tr><td>
  <div><table width="100%" cellpadding="0" cellspacing="0"><tbody><tr><td><div style="background: transparent url(/groups/roundedcorners?c=fad163&amp;bc&amp;w=2&amp;h=2&amp;a=af) repeat scroll 0px 0px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 2px; height: 2px;"></div></td><td width="100%" bgcolor="#fad163" height="2"><img alt="" width="1" height="1"></td><td><div style="background: transparent url(/groups/roundedcorners?c=fad163&amp;bc&amp;w=2&amp;h=2&amp;a=af) repeat scroll -2px 0px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 2px; height: 2px;"></div></td></tr></tbody></table></div>
  <div class="pokh" style="background-color: rgb(250, 209, 99);">
  <div id="pok_cnt"></div>
  </div>
  <div><table width="100%" cellpadding="0" cellspacing="0"><tbody><tr><td><div style="background: transparent url(/groups/roundedcorners?c=fad163&amp;bc&amp;w=2&amp;h=2&amp;a=af) repeat scroll 0px 2px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 2px; height: 2px;"></div></td><td width="100%" bgcolor="#fad163" height="2"><img alt="" width="1" height="1"></td><td><div style="background: transparent url(/groups/roundedcorners?c=fad163&amp;bc&amp;w=2&amp;h=2&amp;a=af) repeat scroll -2px 2px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 2px; height: 2px;"></div></td></tr></tbody></table></div>
  </td></tr></tbody></table>
  </div>
  </div>
  <div class="hide" id="peml">You must <a target="_top" href="https://www.google.com/groups/signin?cd=US&amp;hl=en&amp;ssip=g3&amp;_done=http%3A%2F%2Fgroups.google.com%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3">Sign in</a> before you can post messages.</div>
  <div class="hide" id="pemj">To post a message you must first <a href="http://groups.google.com/group/cake-php/subscribe" target="_top">join this group</a>.</div>
  <div class="hide" id="peus">Please update your nickname on the <a target="_top" href="http://groups.google.com/group/cake-php/subscribe?reason=post_renew&amp;_done=%2Fgroup%2Fcake-php%2Fbrowse_thread%2Fthread%2Fa7480daeb8922d0d%2F2f6ff50ac0d367d3%3F&amp;">subscription settings</a> page before posting.</div>
  <div class="hide" id="pep">You do not have the permission required to post.</div>
  <script language="javascript1.3"><!--

    
      
      
      
    

    var msg = G2_cardManager._getMessage("bb677da497223c22");
    msg._init("bb677da497223c22", "c6071177-373f-479d-bdf1-1dc8c07bc129@b1g2000hsg.googlegroups.com", true,
              "over", true, false,
              "", 1);

    
      msg._setPrev(G2_cardManager._getCard("msg_b080f637a3116c2a"),
                   1);
    

    msg._addPreLoadHook(function() {
      

      
    });

    

    
  //--></script>
</td></tr></tbody></table>
  </div>
<table cellpadding="2" cellspacing="0">
  <tbody><tr>
  <td style="padding: 0px 2px;" class="uit" width="100%">
  End of messages
  </td>
  <td width="1"><nobr>
  </nobr></td>
  </tr>
</tbody></table>
<div class="hsep mrgt8"></div>
<table cellpadding="0" cellspacing="0">
  <tbody><tr>
  <td style="padding: 0px;" class="fontsize2" width="100%">
  <a class="on" href="http://groups.google.com/group/cake-php/topics"><b>« Back to Discussions</b></a>
  </td>
  <td nowrap="nowrap">
  <a class="on" href="http://groups.google.com/group/cake-php/browse_thread/thread/88484c2e3f7d41a8">« Newer topic</a>
  </td>
  <td nowrap="nowrap">&nbsp;&nbsp;&nbsp;</td>
  <td align="right" nowrap="nowrap">
  <a class="on" href="http://groups.google.com/group/cake-php/browse_thread/thread/97e69d7b7d27e82b">Older topic »</a>
  </td>
  </tr>
</tbody></table>
</div>
</div>
<br clear="all">
  <div class="padt10 clear"></div>
  </td><td style="background-color: rgb(0, 61, 76);">
  <div style="width: 32ex; height: 500px;">
  <img alt="" width="1" height="500">
  </div>
  </td></tr></tbody></table>
  <div style="background-color: rgb(0, 61, 76);">
<div class="padt10 padb10">
  <table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tbody><tr valign="center">
  <td style="padding-right: 1em;" class="fontsize2" align="center">
  <b><a style="color: rgb(255, 255, 255);" target="_top" href="http://groups.google.com/groups/create?lnk=gcf">Create a group</a></b><font color="#cccccc"> - </font>
  <a style="color: rgb(255, 255, 255);" target="_top" href="http://groups.google.com/">Google Groups</a><font color="#cccccc"> - </font>
  <a style="color: rgb(255, 255, 255);" target="_top" href="http://www.google.com/webhp?hl=en">Google Home</a><font color="#cccccc"> - </font>
  <a style="color: rgb(255, 255, 255);" target="_top" href="http://groups.google.com/intl/en/googlegroups/terms_of_service3.html">Terms of Service</a><font color="#cccccc"> - </font>
  <a style="color: rgb(255, 255, 255);" target="_top" href="http://groups.google.com/intl/en/googlegroups/privacy3.html">Privacy Policy</a>
  </td>
  </tr>
  <tr>
  <td style="color: rgb(204, 204, 204);" class="fontsize1 padt5" align="center">©2008 Google</td>
  </tr>
  </tbody></table>
</div>
  </div>
<script language="javascript"><!--
if( loaddef != "" ) {
  window.onload=new Function( loaddef );
}
if( resizedef != "" ) {
  window.onresize = new Function( resizedef );
}
//--></script>
  <script src="google_groups_files/urchin.js" type="text/javascript"> </script>
  <script type="text/javascript"><!--
      
        _uacct = "UA-1044941-1";
      
      urchinTracker("\x2Fgroup\x2Fcake-php\x2Fbrowse_thread\x2Fthread\x2Fa7480daeb8922d0d\x2F2f6ff50ac0d367d3?als_gt=group\x26als_greg=US\x26als_gact=30\x26als_gsubs=8663\x26als_gview=p\x26als_gpjoin=y\x26als_sstat=s\x26als_usc=1\x26");
    //--></script>
</body></html>